Sunday, November 24, 2024
HomeVulnerabilityMicrosoft Edge Browser Vulnerability Allows Malicious Hackers Steal Your Computer Local Files

Microsoft Edge Browser Vulnerability Allows Malicious Hackers Steal Your Computer Local Files

Published on

Newly discovered in Microsoft Edge Browser vulnerability allows attackers stealing the computer local files from victims who all are using a vulnerable version of the Edge browser.

This Edge Browser Vulnerability exists in the version 17.8600.40445.0 where the researcher tested and successfully exploits this vulnerability.

Edge browser brought many new security futures and the team behind the Edge has always focused with well defined  Content Security Policy (CSP).

- Advertisement - SIEM as a Service

In this case, the researcher identified the flaw in Same Origin Policy (SOP) that allows special format of the URL can inject into the browser and the attacker can read the content of any local file.

Edge Browser Vulnerability Attack Scenario

Basically, SOP functioning Edge browser and other SOP support browsers prevent from an attacker who tries to read the file from users computer by loading the malicious URL.

Because the Protocol and the port need to match if the attacker needs to access the local data using JavaScript-issued request, but it’s not possible since the 2 protocols(( file://https://)) is totally different.

In this case, the Attacker can’t read the local files. but it could be bypassed using another scenario using TWO files URLs neither have a hostname nor a port.

So the attack can be achieved by using two file URLs(file://) that eventually form the same origin in the targeted system because,

  • The port matches: Both have no port
  • The hostname matches: There is no hostname on both of them
  • The protocol scheme matches: Both use the file:// scheme

Attacker Need to Trick the Victim

In this case, Edge’s SOP failed to validate the two same URLs because that has no port, no hostname, also it belongs to same protocol(file://) and the attacker can trick the victims and let them open the malicious HTML file.

Html file contains malicious code that loads the local file:// protocol, as we discussed above, that neither has a hostname nor a port.

Eventually, once the victims execute the malicious URL then it will load into the local system and read the local files in victims computer.

Researchers Albeniz said, I drafted an email from another computer, added the file as an attachment and then opened the attachment in the Mail and Calendar app. Much to my surprise, it worked. I expected that the app, like the Edge browser, would block the attachment.
But this was not the case at all. When I sent the email as an attachment and waited until a user opened it, it would immediately send local files of my choosing to my server, where I could store and read them. There is probably no antivirus program that would recognize my file as malicious, and, I could extract the files over a secure HTTPS connection.

So In order to protect from this attacker, all the Edge user need to update their browsers and Windows Mail and Calendar applications. also, avoid opening attachments from unknown senders.

This vulnerability can exploit using following POC code by changing it in HTML file.

<html> <head> <script> let resultDiv = document.getElementById("result");     let xhr= new XMLHttpRequest();     let user = document.location.href.match(/file:\/\/\/C:\/Users\/([a-z0-9\-]*)\//i)[1];     xhr.open("GET",'file://C:/Users/${user}/Desktop/secret.txt");     xhr.onreadystatechange = ()=> {      if(xhr.readyState==4) {      resultDiv.innerText = xhr.responseText;      }     }     xhr.send(); </script> </head> <body> </body> <div id="result"></div> </html>
Microsoft fixed the vulnerability (CVE-2018-0871) and release Patch June 2018 security updates.
Balaji
Balaji
BALAJI is an Ex-Security Researcher (Threat Research Labs) at Comodo Cybersecurity. Editor-in-Chief & Co-Founder - Cyber Security News & GBHackers On Security.

Latest articles

Nearest Neighbor Attacks: Russian APT Hack The Target By Exploiting Nearby Wi-Fi Networks

Recent research has revealed that a Russian advanced persistent threat (APT) group, tracked as...

240+ Domains Used By PhaaS Platform ONNX Seized by Microsoft

Microsoft's Digital Crimes Unit (DCU) has disrupted a significant phishing-as-a-service (PhaaS) operation run by...

Russian TAG-110 Hacked 60+ Users With HTML Loaded & Python Backdoor

The Russian threat group TAG-110, linked to BlueDelta (APT28), is actively targeting organizations in...

Earth Kasha Upgraded Their Arsenal With New Tactics To Attack Organizations

Earth Kasha, a threat actor linked to APT10, has expanded its targeting scope to...

Free Webinar

Protect Websites & APIs from Malware Attack

Malware targeting customer-facing websites and API applications poses significant risks, including compliance violations, defacements, and even blacklisting.

Join us for an insightful webinar featuring Vivek Gopalan, VP of Products at Indusface, as he shares effective strategies for safeguarding websites and APIs against malware.

Discussion points

Scan DOM, internal links, and JavaScript libraries for hidden malware.
Detect website defacements in real time.
Protect your brand by monitoring for potential blacklisting.
Prevent malware from infiltrating your server and cloud infrastructure.

More like this

FortiClient VPN Flaw Enables Undetected Brute-Force Attacks

A design flaw in the logging mechanism of Fortinet's VPN servers has been uncovered,...

macOS WorkflowKit Race Vulnerability Allows Malicious Apps to Intercept Shortcuts

A race condition vulnerability in Apple's WorkflowKit has been identified, allowing malicious applications to...

Trend Micro Deep Security Vulnerable to Command Injection Attacks

Trend Micro has released a critical update addressing a remote code execution (RCE) vulnerability...