NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Malware Analysis Fundamentals
Malware is the primary weapon in a cyber attacker's arsenal, but to defeat it, you must first understand how it works. M
ViewWindows Fundamentals
The Windows Fundamentals learning path provides a comprehensive foundation in Microsoft Windows operating systems, speci
ViewNetwork Forensics
Network traffic is the nervous system of any organization, and for attackers, it is the highway used for initial access,
ViewReverse Engineering Fundamentals
This foundational learning path introduces the core principles of reverse engineering for aspiring malware analysts and
ViewPreview · 35 min
Read the response headers that decide how a browser treats a stored file, compare the preview and download routes, judge impact honestly and recommend layered fixes.
At 13:41:09 Ben asked for GET /v2/receipts/rcp_8951/preview, the route the web app uses to show a receipt on screen. The answer was 200 with Content-Type: image/svg+xml and Content-Disposition: inline, and no X-Content-Type-Options header at all. At 13:43:30 he asked for /v2/receipts/rcp_8951/download. Same file, same bytes, and this time the browser was told to save it and not to guess its type.
A stored file does nothing while it sits in storage. What it can do to a user depends on the response that delivers it: which type the server announces, whether the browser should display or save it, and which origin it appears to come from. An origin is the combination of scheme, host and port, and the browser uses it to decide what a document may read and request.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in