Skip to content
Path traversal Write-up Intermediate

Critical LFI in a Microsoft AI Server (CVE-2025–30208)

A staging server running a Vite development server was exposed to the internet and vulnerable to a path traversal flaw that allowed reading arbitrary files. An attacker could read sensitive files such as environment variables containing API keys and secrets, potentially leading to a cloud breach.

medium.com

Published on medium.com

Most bug hunters see that code, mark the subdomain as “dead,” and move on to the next target. That is a mistake.

Aman Kumar (ak), on medium.com

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

The server was running a vulnerable version of Vite with the --host flag, allowing a path traversal bypass using a specific query string.

Impact

An attacker could read sensitive environment variables containing API keys, database URLs, and secrets, potentially leading to a cloud breach and data theft.

What the attacker needed

Access from an Azure IP address; Knowledge of the Vite vulnerability

The fix

The vulnerability was fixed by Microsoft within six days of the report.

How it was found

  1. Scan subdomains and check status codes with httpx from an Azure IP.
  2. Notice a staging Copilot subdomain returning 200 from Azure but 403 from a home IP.
  3. Access the site from an Azure VM to bypass the IP allowlist.
  4. Identify the technology as Vite using Wappalyzer.
  5. Search for Vite vulnerabilities and find CVE-2025-30208.
  6. Send a request to /etc/passwd with the ?raw?? query string to read the file.

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 tool that helps programmers build websites, but it is not meant to be online for everyone. This one had a bug that let anyone read files on the server, like a password list. The attacker could then use those secrets to break into other systems.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.