Pentest to CVE Research
A time-based blind SQL injection existed in the VICIdial call centre platform's recording control endpoint, where the rec_action parameter was placed directly into a SQL query after only a weak regex filter. An attacker could execute arbitrary SQL, potentially disclosing credentials, call recordings and metadata, and pivoting into the Asterisk infrastructure.
medium.com
Published on medium.com
During an internal network penetration test in 2023, I discovered a previously undocumented time-based blind SQL injection vulnerability in VICIdial, an open-source call center platform. This post provides a technical deep-dive into the vulnerability discovery process, root cause analysis, exploitation methodology…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application concatenated the rec_action parameter directly into a SQL query without prepared statements or strict allowlisting, relying on a regex that stripped non-alphanumeric characters but still permitted valid SQL expressions.
Impact
This could allow unauthenticated SQL execution on some deployments, credential disclosure, access to call recordings and metadata, and potential RCE depending on database permissions.
What the attacker needed
Network access to the VICIdial instance; vulnerable version of VICIdial
The fix
The issue should be fixed by using prepared statements and strict allowlisting that separates control commands from data values; the text says subsequent versions appear to have addressed it.
How it was found
- Run an HTTP version scanner across the server farm to find web services.
- Run a web vulnerability scanner against the identified target.
- Intercept the request to the vulnerable endpoint in a proxy tool.
- Send time-delayed payloads in the rec_action parameter and observe the response delays to confirm the injection.
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 write-up has not been written yet. The Original tab links to the source.
SQL injection is when user input is inserted into a database query without proper separation, so the input can change the query's meaning. Here, a parameter meant to hold a recording ID was pasted straight into a database command, and the only defence stripped some characters but still allowed a working attack. An attacker could make the database pause on purpose to confirm the injection, then use it to read data.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.