{"exploit":{"id":"EDB-30228","name":"Apple WebCore - XMLHTTPRequest Cross-Site Scripting (XSS)","description":"Apple WebCore - XMLHTTPRequest Cross-Site Scripting (XSS)","cves":["CVE-2007-2401"],"author":"Richard Moore","published":"2007-06-22","platform":"osx","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/30228","path":"exploits/osx/remote/30228.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-30228.txt","vulnerabilities":[{"id":"CVE-2007-2401","state":"PUBLISHED","title":null,"titleSource":null,"description":"CRLF injection vulnerability in WebCore in Apple Mac OS X 10.3.9, 10.4.9 and later, and iPhone before 1.0.1, allows remote attackers to inject arbitrary HTTP headers via LF characters in an XMLHttpRequest request, which are not filtered when serializing headers via the setRequestHeader function. NOTE: this issue can be leveraged for cross-site scripting (XSS) attacks.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-2401","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-2401"},"updatedAt":"2024-08-07T13:33:28.923Z","retrievedAt":"2026-11-27T12:08:24.504Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-30228.png?v=2","url":"https://exploitbin.com/exploits/EDB-30228","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-30228/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-30228/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"source: https://web.archive.org/web/2007/https://www.securityfocus.com/bid/24598/info\n\nApple WebCore is prone to a cross-site scripting vulnerability because the application fails to properly sanitize user-supplied input.\n\nAn attacker may exploit this issue by enticing victims into visiting a malicious website.\n\nThe attacker may leverage this issue to execute arbitrary script code in an application using the affected framework (typically Safari). This may help the attacker steal cookie-based authentication credentials and launch other attacks.\n\n----------------------------------------\n\nxmlhttp.setRequestHeader('Foo', 'baa\\nHost: test\\n');\n\nThe above request is treated as valid and results in:\n\nGET / HTTP/1.1\nAccept-Encoding: gzip, deflate\nAccept-Language: en\nFoo: baa\nHost: test","sha256":"70078fb0ae048cc19a96ab3119de0ad194aceec9f5f47fe76614621170318532","bytes":788,"fetchedAt":"2026-11-27T12:08:24.286Z","encoding":"utf-8 (display only; download retains original bytes)"}