Skip to content

Externally Controlled Reference to a Resource in Another Sphere in MSEdgeRedirect

High
rcmaehl published GHSA-95v4-748v-fmf9 Dec 19, 2021

Package

MSEdgeRedirect (AutoIt)

Affected versions

< 0.5.0.1

Patched versions

0.5.0.1

Description

Impact

MSEdgeRedirect versions before 0.5.01 are vulnerable to Remote Code Execution via specifically crafted URLs. This vulnerability requires user interaction and the acceptance of a prompt similar to the one below:

image

With how MSEdgeRedirect is coded, parameters are impossible to pass to any launched file. However, there are two possible scenarios in which an attacker can do more than a minor annoyance:

Scenario 1 (CVSS 7.5) - Confirmed:

  1. A user visits an attacker controlled webpage
  2. The user is prompted with, and downloads, an executable payload
  3. The user is prompted with, and accepts, the aforementioned crafted URL prompt
  4. RCE executes the payload the user previously downloaded, if the download path is successfully guessed

Scenario 2 (CVSS 8.8) - Not Yet Confirmed:

  1. A user visits an attacked controlled webpage
  2. The user is prompted with, and accepts, the aforementioned crafted URL prompt
  3. A payload on a remote, attacker controlled, SMB server is executed

The issue was found in the _DecodeAndRun() function, in which I incorrectly assumed _WinAPI_UrlIs() would only accept web resources. Unfortunately, file:/// passes the default _WinAPI_UrlIs check(). File paths are now directly checked for and must fail. Future lockdown to URLs are planned in upcoming versions:

  • Additional checks for indicators of non-HTTP/HTTPs URLs will be added to the _IsSafeURL() function
  • Any URLs will be passed directly to the default browser instead of allowing Windows to resolve the URL using _GetDefaultBrowser()

There is no currently known exploitation of this vulnerability in the wild.

Patches

A patched version, 0.5.0.1 has been released that checks for and denies these crafted URLs.

Workarounds

There are no workarounds for this issue. Users are advised not to accept any unexpected prompts from web pages.

References

CWE-610
CVE-2021-43844
https://positive.security/blog/url-open-rce

For more information

If you have any questions or comments about this advisory:

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVE ID

CVE-2021-43844

Weaknesses

Credits