Lucene search
K

Modern Browser XSS Filter Evasion

🗓️ 23 Jan 2014 00:00:00Reported by Ioseba PalopType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 16 Views

Modern Browser XSS Filter Evasion. Weakness in srcdoc attribute of IFRAME ta

Code
`Modern browsers usually have an antiXSS filter, that protects users from some of the consequences of this kind of attacks. Normally, they block cross site scripting execution, so the "injected" code (normally, JavaScript or HTML) is not executed inside victim's browser. Chrome calls this filter XSSAuditor.  
  
But if the victim visits a website with an XSS problem that an attacker is trying to take advantage of, it would not be fully protected. This bug is based on a misuse of srcdoc attribute of IFRAME tag, included in HTML5 definition. To perform an XSS attack on Google Chrome Browser or Safari using this bug, the website must include an IFRAME and must be able to read any attribute of this element from HTTP parameters (GET/POST) without applying any charset filter. Then, in the IFRAME parameter, the srcdoc attribute may be included with JavaScript code. The browser cannot filter it and will be executed.  
  
An HTML injection on src parameter would be:  
  
iframe src=""srcdoc="<script>alert('Bypass message')</script>"  
  
For a proof of concept, visit:  
  
http://demofaast.elevenpaths.com:9002/xssbypass/iframebypass.php?iframe=%22srcdoc=%22%3Cscript%3Ealert('Bypass%20message')%3C/script%3E  
  
The problem was reported in October, the 23rd. They fixed it two days later, making XSSAuditor catch reflected srcdoc properties even without an "IFRAME" tag injection. Chrome has just fixed it in recent 32.0.1700.76 version.  
  
Safari for Mac and iPhone is vulnerable as well.  
  
  
  
This weakness has been discovered by Ioseba Palop from Eleven Paths ([email protected]<mailto:[email protected]>). Full samples and detailed explanation here: http://blog.elevenpaths.com/2014/01/how-to-bypass-antixss-filter-in-chrome.html  
  
`

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