Network Management
Mitigate the Resource.aspx Reflected Cross-Site Scripting Vulnerability (CVE-2021-35222)
The Resource.aspx Reflected Cross-Site Scripting Vulnerability allows attackers to impersonate users and perform arbitrary actions on their behalf. To resolve this issue, upgrade to Orion Platform 2020.2.6 Hotfix 1. To mitigate this issue on Orion Platform 2020.2.6 and earlier, follow the steps in the resolution section below.
First published date
Last published date
Overview
Product section
Cause
Resolution
Orion Platform 2020.2.6 Hotfix 1
SolarWinds recommends that you upgrade to Orion Platform 2020.2.6 Hotfix 1, which is released on August 24, 2021.Orion Platform 2020.2.6 and earlier
To mitigate this issue on 2020.2.6 or earlier, execute the following steps on each main polling engine (MP), main polling engine backup, and additional web server (AW).- Download and install URL Rewrite IIS extension from https://www.iis.net/downloads/microsoft/url-rewrite (© 2021 Microsoft, available at https://www.iis.net/downloads/microsoft/url-rewrite, obtained on August 18, 2021).
- Locate the root directory of the Orion website:
- Go to "C:\inetpub\SolarWinds" or,
- Open IIS Manager, click on the "SolarWinds NetPerfMon" site in the left connections menu. Click on "Explore" in the actions menu on the right.
- Open the "web.config" file for edit.
- FIND the following line:
<defaultDocument enabled="true">
- PASTE the following code BEFORE the above-mentioned line.
<rewrite> <rules> <rule name="BlockInvalidResourceTitle" patternSyntax="ECMAScript" stopProcessing="true"> <match url="resource\.aspx" /> <conditions> <add input="{QUERY_STRING}" pattern="title=.*[%<>()"';&+]+" /> </conditions> <action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page using the credentials that you supplied." /> </rule> </rules> </rewrite> - Save the file.
To verify the workaround:
- Navigate in browser to "<YOUR_ORION_SERVER_NAME>/Orion/Resource.aspx?Resource=ResourceNotFound.ascx&Title=%3C".
- You should receive HTTP ERROR 403.