People often ask me "How did you learn how to hack?" The answer: by reading. This page is a collection of the blog posts and other articles that I have accumulated over the years of my journey. Enjoy!
EdgeCAGuidanceNavigationThrottle for its enterprise Entra ID feature. This throttle guides users to the right User Profile when Edge detects a work account sign-in on a Microsoft-owned website, redirecting them to the Microsoft-owned domain. If they don't match, Edge creates a dialog to switch accounts. If they do match, Edge grabs the URL you originally meant to switch to and creates a new navigation through Chrome's internal navigation API.devtools or using the JavaScript URI. At first glance, this wasn't very useful because you needed a mechanism to trigger this from login.live.com in the first place. So, it'd be more of a self-XSS. After this sat on the shelf for a few weeks, they had an idea... CURRENT_TAB exist in? They ran setTimeout() to change the URL to https://guidance-ca-error/?email={email}&switch_profile={url} after the throttle. To their surprise, the URL with the JavaScript URI executed on the exact page they wanted! It was universal XSS in the browser. The root cause was that the Renderer used the current active tab as the Renderer Source, even if it wasn't the domain that originated the request. Neat!login.live.com. The check for this was brittle since it used web_contents->GetLastCommittedURL(). This isn't the origin or the domain; it's the last navigated-to domain. By running window.open() to the page, and then moving the location of the popup to the desired attacker-controlled URL, the check is bypassed. This attempts to check the page origin, but it uses the wrong field. www.microsoft.com, a User Profile is automatically made for you! Even with this sign-in, you need to know the email. To find the logged-in email, they found an MSN endpoint that had messed up CORS headers and returned the logged-in email. So, you could make a request to the MSN endpoint (with credentials included because of how cookies work) to get the email. about:blank#quickAuthPopup, and then swapping it to a different location, the popup would just appear. A super simple bypass for the popup issue. Together, this leads to a single-website-visit universal XSS. This means running arbitrary JavaScript on any page, like Google or Facebook. They still wanted to execute code on the victim's computer, which would require more bugs.edge://settings. Alas, the Chromium developers have a check to ensure that all privileged pages won't execute JavaScript from the javascript:// URI. While reviewing Microsoft Edge, they found that the Immersive Reader functionality used a very old fork of Chromium. So old that it's blacklist was missing the custom read:// schema! So, this gave them access to many natives pieces of functionality. From there, they found an arbitrary file-write primitive through log-file diagnostic writing.protocols.json file that controls which origins are allowed to run specific URL protocol handlers. This let them run any protocol handler from the browser, including other handlers they wrote! So, the full chain led to RCE on the victim's laptop from clicking a single link. The whole experience, from having no experience with browsers to completing the full chain, took them two months without using AI.