When dev‑server whispers: a bug hunter’s journey discovering CVE‑2025‑30208 on a government portal.
A Vite development server on a government portal allowed an attacker to bypass its file allowlist by appending query parameters, returning the raw contents of arbitrary files on the host. The researcher used this to read files outside the project root, which could expose sensitive configuration or system data.
Hello hackers, my handle is Will.Star. I’m a security researcher and bug bounty hunter who loves finding real‑world vulnerabilities.
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 Vite dev server's file-serving allowlist check could be bypassed by adding query parameters such as raw or import&raw to the request, causing it to return files outside the permitted root.
Impact
An attacker could read arbitrary files on the server, potentially exposing sensitive configuration or system data; the text does not show what specific files were retrieved beyond the proof of concept.
What the attacker needed
Vite dev server exposed to the internet; knowledge of target file paths
The fix
The Vite dev server should be upgraded to a patched version and never exposed to the internet; the text recommends upgrading immediately and running it on localhost only.
How it was found
- Perform light reconnaissance on public headers, robots.txt, sitemap and subdomains.
- Identify a subdomain running a Vite development server.
- Run directory discovery and inspect the main JavaScript bundle for API routes and token handling.
- Request a sensitive file path directly and observe it is rejected.
- Repeat the request with the raw or import&raw query parameters to receive the file contents.
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 development server is a helper program used while building a website; it should never be reachable from the public internet. This one had a rule about which files it would serve, but a crafted web address tricked it into ignoring that rule and handing back any file on the machine. That means private files such as system password lists or configuration files could be read by anyone who knew the path.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.