Cookie spoofing in php source code Auditing

Source: Internet
Author: User

Ebycms is a mobile phone music cms system that directly uploads in. php under the Code admin directory <! --? Php require_once ('l:/wamp/www // fern. php ');
Annotation ("L :\\ wamp \ www \ eby \ admin \ in. php_0 ");
Define (EBY_IN, TRUE );
Define ('admin _ root', str_replace ("\", "/", dirname (_ FILE __))."/");
Define ('eby _ root', dirname (ADMIN_ROOT ).'/');
Require_once (EBY_ROOT. 'control/init. php ');
$ AdminCookies = $ _ COOKIE ['admin'] ['name']; if ($ AdminCookies = '')
{Exit (showmsg ('incorrect account or password ', 2, 'index. php '));}? --> Determine whether $ AdminCookies are empty. If not empty, log on to $ AdminCookies. The value of the source cookie admin [name] is changed to cookies. Bypass verification,



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.