Cyber Risks · PortSwigger Research

Source Mapper

Summary: PortSwigger lists a Burp Suite extension called Source Mapper, version 1.3, last updated 26 February 2024, that injects offline source maps so minified JavaScript and CSS can be read and debugged in the browser's developer tools. The extension serves ".map" files from a configured local directory, matching each map file to the original JS file name with a ".map" extension added, and injects them so the browser does not need to check for CORS violations.

Why it matters: Source maps restore readable variable and function names to minified client-side code, so any map files left reachable on a production Single Page Application hand over the original source to anyone who looks.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related