High Level Analysis Of Custom Browsers
The custom banking browser was found to load missing DLLs from unsafe locations, allowing an attacker to place a malicious DLL and execute code with the browser's privileges. It also allowed navigation restrictions to be bypassed via an HTML file or command-line parameters, enabling redirection to non-whitelisted domains.
Published on infosecwriteups.com
In this post we will show some common vulnerabilities that can be found in custom built browsers, which are mainly used by banking. What these browsers offer users is browsing security, just for the fact that they are exclusive browsers.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the browser's service binaries searched for DLLs in unsafe locations, and its navigation restrictions could be bypassed by user-supplied files or command-line arguments.
Impact
An attacker could execute malicious code, gain persistence, and escalate privileges; navigation restrictions could also be bypassed to redirect users to malicious sites.
What the attacker needed
Ability to place a file in the binary directory; victim runs a crafted HTML file; victim uses the custom browser
How it was found
- Identify the services that run after installing the browser using Process Monitor with filters.
- Observe that the service binaries attempt to load missing DLLs, including WINHTTP.dll.
- Identify the functions of the missing DLL using CFF Explorer.
- Create a malicious DLL in C++ and compile it with Visual Studio 2019.
- Copy the DLL to the root directory of the binaries or copy the binary to a Windows directory with the DLL.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A DLL is a file that a Windows program loads to get extra code. If a program looks for a DLL in a folder where an attacker can place files, the attacker can supply a fake DLL and the program will run it. Separately, the browser tried to keep users on approved websites, but a crafted file or special launch options could send them elsewhere.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.