hack-php the topic "Q2" of information security (intrusion acquisition $flag)

Source: Internet
Author: User

Address: http://202.120.7.134:8888/html/array.php

Participate in the ISG (Information Security Competition) found a topic.
As a phper, meow I really feel this code no solution ah ...
Ask the big God to dispel doubts, how to give a user parameter, get to $flag ...

Update at 2015/20/22
Finally, through the "invitation to answer" to find the great God ~
The flaw is that PHP's array subscript is a bug that can take advantage of "integer Overflow" ...
You can refer to this:
https://bugs.php.net/bug.php?id=69892

I think the use of the bug to make a question, is simply ...

The game has been over, determined to write down their own code:


  
   

测试效果:

测试地址:
http://moonlordapi.sinaapp.com/1.php

补充,参数可以有好几种方式:
http://moonlordapi.sinaapp.com/1.php?user[4294967296]=admin&user[4294967297]=1445502008
http://moonlordapi.sinaapp.com/1.php?user[4294967296]=admin&user[]=1445502008
http://moonlordapi.sinaapp.com/1.php?user[4294967296]=admin&user[1]=1445502008

就此愉快地结题了。

Reply content:

Address: http://202.120.7.134:8888/html/array.php

Participate in the ISG (Information Security Competition) found a topic.
As a phper, meow I really feel this code no solution ah ...
Ask the big God to dispel doubts, how to give a user parameter, get to $flag ...

Update at 2015/20/22
Finally, through the "invitation to answer" to find the great God ~
The flaw is that PHP's array subscript is a bug that can take advantage of "integer Overflow" ...
You can refer to this:
https://bugs.php.net/bug.php?id=69892

I think the use of the bug to make a question, is simply ...

The game has been over, determined to write down their own code:


  
    

测试效果:

测试地址:
http://moonlordapi.sinaapp.com/1.php

补充,参数可以有好几种方式:
http://moonlordapi.sinaapp.com/1.php?user[4294967296]=admin&user[4294967297]=1445502008
http://moonlordapi.sinaapp.com/1.php?user[4294967296]=admin&user[]=1445502008
http://moonlordapi.sinaapp.com/1.php?user[4294967296]=admin&user[1]=1445502008

就此愉快地结题了。

Consulted my safe, great God classmate He said 0 can be bypassed by an integer overflow if judgment

Upstairs positive solution ....

  • 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.