Another Arbitrary File Upload Vulnerability in ThinkSNS

Source: Internet
Author: User

A module does not verify the upload file type. Attackers can upload arbitrary files.
Someone found an arbitrary Upload Vulnerability. So I looked at it. Don't know if it's consistent with his address: http://www.bkjia.com/Article/201212/172844.html
Code Generation location apps \ wap \ Lib \ Action \ IndexAction. class. php263 if (! Empty ($ _ FILES ['pic '] ['name']) {// automatically send an image microblog $ data ['pic '] =$ _ FILES ['pic']; $ data ['content'] = 'image sharing '; $ data ['from'] = $ this-> _ type_wap; $ res = api ('statuses ')-> data ($ data)-> upload ();} access the wap module without filtering the file type and send a microblog and send the firebug address
Remove small _ and access http://www.bkjia.com/data/uploads/2012/1023/17/50865 d481c217. phpSolution:Check the upload type

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.