Skip to content
SQL injection Write-up Intermediate

CMS Made Simple <= 1.2.2 (content_css.php) SQL Injection Vulnerability

The TinyMCE module's content_css.php script did not sanitise the templateid parameter, allowing SQL injection. An attacker could inject or manipulate SQL queries in the back-end database, enabling manipulation or disclosure of arbitrary data.

karmainsecurity.com

Published on karmainsecurity.com

CMS Made Simple contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the ‘modules/TinyMCE/contentcss.php’ script not properly sanitizing user-supplied input to the ‘templateid’ parameter.

The author, on karmainsecurity.com

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

Impact

An attacker could inject or manipulate SQL queries in the back-end database, allowing the manipulation or disclosure of arbitrary data.

What the attacker needed

Access to the vulnerable script

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.

A web page took a value from the user and put it straight into a database command without cleaning it first. By sending a specially crafted value, an attacker can change what the database command does, potentially reading or altering 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.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.