Use after free in Navigation (CVE-2024-6777)
A use-after-free vulnerability exists in Chrome's WebUI navigation handling, specifically in content::RemoveWebUIManagedInterfaces. An attacker could potentially exploit this to cause a crash or possibly execute arbitrary code.
Originally disclosed on Chrome VRP
- Fix shipped in 40 days
Steps to reproduce the problem
Hi happy friday,
2 methods to reproduce this UAF.
Extension Method (automatic)
- Make sure Chrome has only 1 tab open in current window. Only the chrome://extension tab.
- Add poc.zip to Chrome
Manual Method:
- Visit chrome://print/ from URL bar.
- Visit chrome://print/1 from URL bar
- Press back button.
- Press forward button.
I can reproduce in Stable.
Problem Description
UAF in content::RemoveWebUIManagedInterfaces at RenderFrameHost* rfh = webui_controller->web_ui()->GetRenderFrameHost();
Additional Comments
Bisect:
You are probably looking for a change made after 1150389 (known good), but no later than 1150401 (first known bad). CHANGELOG URL: https://chromium.googlesource.com/chromium/src/+log/51513d937d1e1ebb5c5134083c695f35ca895083..77b19d7e83c7ee09bd488df602ecaa4385403e04
Summary
heap-use-after-free in in content::RemoveWebUIManagedInterfaces
Custom Questions
Type of crash:
browser
Reporter credit:
Sven Dysthe @svn-dys
Additional Data
Category: Security
Chrome Channel: Stable
Regression: N/A
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
This could lead to a browser crash and potentially allow an attacker to execute arbitrary code.
What the attacker needed
Chrome browser; User interaction (navigation)
How it was found
- Open only the chrome://extensions tab in the current window.
- Add the provided poc.zip to Chrome.
- Visit chrome://print/ from the URL bar.
- Visit chrome://print/1 from the URL bar.
- Press the back button.
- Press the forward button.
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 report has not been written yet. The Original tab links to the source.
A use-after-free is a bug where a program keeps using memory after it has been freed, which can lead to crashes or let an attacker run their own code. This report shows that navigating between certain internal Chrome pages can trigger this bug.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.