Hi All,
I am Maloy Roy Orko.
Recently in one of my pentest research, I found a Library-Card-System application By Needyamin which is an open source Library-Card-System to print a library card with student information using PHP, MYSQL, JAVASCRIPT.
It is based on the scripting languages of PHP. Library-Card-System is a Library-Card-System using PHP, MYSQL, JAVASCRIPT
Curious to explore its functionalities, I downloaded and set it up in my local system.
After fiddling with the source code, I found that it did not have any kind of SQL INJECTION Protection in admin.php file.
It can lead into:
- Malware Distribution
- Data Breach
- Web Shell Installation
- Reputation Damage
The Main Thing Is,If any NON-IT personal uses this template,he will fall into this vulnerability and his companies reputation can be lost too.Thats why I am trying to inform everyone about this.
- Title of the Vulnerability:
- Library-Card-System | Admin Login Bypass In admin.php | Found By Maloy Roy Orko
- Vulnerability Class: SQL Injection
- Product Name: Library-Card-System
- Vendor: https://github.com/needyamin/
- Vulnerable Product Link: https://github.com/needyamin/Library-Card-System/
- Technical Details & Description: The application source code is coded in a way which allows SQL Admin Bypass.It can lead into:
- Malware Distribution
- Data Breach
- Denial of Service (DoS)
- Web Shell Installation
- Reputation Damage
- Product & Service Introduction: Library-Card-System
- Observation & Exploitation:
Lets Exploit 🌠🗝️🔐:
- First,Go To That Panel
- Example: 192.168.0.100:8080/libb/admin.php
- Now,Use SQL Injection Payloads To Make The Backend Condition True!
- I Will Use: ' or 1=1 limit 1 -- -+
- Then,As The Code Has Severe Errors ; Maybe It Will Not Redirect You To Dashboard But As You Have The Session.You Can Enter The Dashboard.
- Here Dashboard Is: /admindashboard php/
- Example: http://192.168.0.100:8080/libb/admindashboard.php
Conclusion :-
The main aim of this article is to show that if any NON-IT personal uses this template,he will fall into this vulnerability and his companies reputation can be lost too. But I also hope that it helps to give you ideas of how combi
ning attacks can make them much more potent.