Industry star 0.87 vote. php injection and repair

Source: Internet
Author: User

 

Team: t00ls Author: Cond0r

Code.

Vote. php

 

If ($ _ REQUEST ['op'] = 'Poll '){

If ($ _ POST ['op'] & $ _ POST ['vtid']) // submit the Post

{

/* Determine whether a ticket has been cast for 24 = 86400 hours */

$ Times = 11600;

$ Add_ip = true;

$ Ip = real_ip (); www.2cto.com

$ Db_table = $ pre. "vote_ip ";

$ SQL = "SELECT add_time FROM". $ pre. "vote_ip

Where vtid = ". $ _ POST ['vtid']." // vtid is not filtered.

AND ip = '$ ip'

AND domain_id = ". $ _ SESSION [$ un_domain_id].

"Order by vipid desc

LIMIT 1 ";

$ Aip = $ oPub-> selectrow ($ SQL );

 

Www.2cto.com fix: Filter vtid based on the above Code

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.