Chamilo LMS 1.11.14: Analysis of Two Blind SQL Injection Vulnerabilities
Two blind SQL injection flaws existed in Chamilo LMS 1.11.14: the 'options' parameter in an AJAX endpoint and the password field of a plugin web service were not sanitised before being placed into SQL queries. An attacker could use time-based injection to extract database contents.
Published on infosecwriteups.com
{{media:0}}
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 user-supplied input was concatenated directly into SQL queries without escaping, in both the AJAX 'options' parameter and the web service password field.
Impact
An attacker could extract database records through blind, time-based injection; the text does not show full data exfiltration beyond the automation script's stated capabilities.
What the attacker needed
Network access to the Chamilo instance; plugin sepe web service reachable
The fix
The text says a later fix added the escape_string() function to sanitise the parameter.
How it was found
- Download the CMS source and trace the 'options' parameter from the AJAX entry file to where the query runs.
- Observe the parameter is not sanitised before the query is built.
- Send a time-based injection request to the plugin web service with a crafted password value.
- Use the delay to confirm the injection and then automate extraction of database, table and column names.
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 pasted into a database query without cleaning, so the input can change the query's meaning. Here the app put a request value straight into a database command, letting an attacker ask the database questions and read answers through timing delays.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.