8000 Vulnerabilities in Legacy File Manager · Issue #146 · i7MEDIA/mojoportal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Vulnerabilities in Legacy File Manager #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JosephMDavis opened this issue Oct 3, 2022 · 0 comments · Fixed by #148
Closed

Vulnerabilities in Legacy File Manager #146

JosephMDavis opened this issue Oct 3, 2022 · 0 comments · Fixed by #148
Labels

Comments

@JosephMDavis
Copy link
Member

Overview

We were recently made aware of a vulnerability in mojoPortal where the legacy file manager known before 2017 as the "Alternative File Manager" or "Advanced File Manager" would allow a user with permissions to use it use script extensions (.aspx, .asmx, etc...) when renaming files. Essentially, one could create a script, save it as a .png (or some other allowed filetype), upload it to a mojoPortal site and then rename the file after it was uploaded, replacing the .png with .aspx. The script could then be executed.
This entire issue requires the end user to have the permission to upload files on the site and for the site to be setup to allow execution of files within the Data directory, a practice mojoPortal has long advised against.

The CVE can be found at https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40341.

Work-Around

A work-around exists for users who do not wish to upgrade their sites. Simply use the URL Rewrite tool in IIS to redirect all requests for /admin/FileManager.aspx and /admin/FileManager.Alt.aspx to /FileManager. The below example code can be copied into the web.config in the rewrite section of system.webServer

<rule name="OldFileManagerByPass" stopProcessing="true">
    <match url=".*" />
    <conditions>
        <add input="{REQUEST_URI}" pattern="/Admin/FileManager(Alt)?.aspx" />
    </conditions>
    <action type="Redirect" url="/FileManager" appendQueryString="false" />
</rule>
@JosephMDavis JosephMDavis linked a pull request Oct 3, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0