Arbitrary XOOPS file deletion and HTTP header Injection

Source: Internet
Author: User

Xoops 2.4.3

Vulnerability description:


Xoops is a popular dynamic web content management system, which is written in Object-Oriented PHP.
Xoops uses the unlink function to delete files on the Web server. This function is used for user input:
Unlink ($ oldsmile_path );
Although the filter functions such as str_replace are used:
$ Oldsmile_path = str_replace ("\","/",
Realpath (XOOPS_UPLOAD_PATH./. trim ($ _ POST [old_smile]);

This filtering is not strong enough. Users can submit malicious requests to delete specified files.

Xoops uses the $ redirect variable in user input without any filtering or restriction:

$ Redirect = trim ($ _ GET [xoops_redirect]);
And:
Header (Location:. $ redirect );

You can inject malicious code into the request header, and then execute the injected code when you access the page again. <* Reference
CodeScan Labs (advisories@codescan.com)
Http://marc.info /? L = bugtraq & m = 126392239411722 & w = 2
*>

Vendor patch:

Xoops
-----
Currently, the vendor does not provide patches or upgrade programs. We recommend that users who use the software follow the vendor's homepage to obtain the latest version:

Http://xoops.sourceforge.net/

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.