CVE-2006-4785 SQL injection in n/a
Remote attackers with low privileges can execute arbitrary SQL commands in Moodle via the blog edit format parameter, potentially accessing or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2006-4785?
CVE-2006-4785 is a high-severity SQL injection vulnerability in Moodle Moodle, published on 14 Sep 2006. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
SQL injection vulnerability in blog/edit.php in Moodle 1.6.1 and earlier allows remote attackers to execute arbitrary SQL commands via the format parameter as stored in the $blogEntry variable, which is not properly handled by the insert_record function, which calls _adodb_column_sql in the adodb layer (lib/adodb/adodb-lib.inc.php), which does not convert the data type to an int.
Weakness: CWE-89
Which versions are affected by CVE-2006-4785?
It affects 1 product.
Products include Moodle Moodle.
How do I fix CVE-2006-4785?
No fix has been published for CVE-2006-4785 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2006-4785 being exploited?
There is no known exploitation of CVE-2006-4785 in the wild and no public exploit code.
Other vulnerabilities in Moodle Moodle
- CVE-2006-4935 File upload in n/a
- CVE-2006-4936 Moodle does not properly validate module instance id
- CVE-2004-2233 Unknown "front page vulnerability with Moodle servers" for Moodle before 1.3.2 has unknown impact and attack vectors.
- CVE-2004-2235 Cross-site scripting in n/a
- CVE-2004-2236 Other in n/a
Sources
Also known as CVE-2006-4896, GHSA-68fm-qg53-rwwj.