Vite Flaw Exploited to Steal Cloud Credentials

Vite Flaw Exploited to Steal Cloud Credentials

F5 Labs details a mass-scanning campaign that abuses a Vite development server flaw to harvest AWS, Azure and other cloud secrets.

Security researchers at F5 Labs have documented a mass-scanning campaign that abuses a Vite flaw to steal cloud credentials from exposed development servers. The automated effort targets internet-exposed Vite deployments and is designed to harvest configuration information from Amazon Web Services (AWS) and Microsoft Azure instances, as well as infrastructure state files. The credential harvesting activity, observed in August 2026, uses an exploit for CVE-2026-39364, a high-severity flaw in Vite with a CVSS score of 8.2. Vite is a popular build tool and local development server used by web developers; in its default setup it listens only on localhost, meaning it is not reachable from outside the computer, but operators sometimes expose it to the internet or local network by passing the --host flag, setting the server.host option, or misconfiguring Docker container port mappings.

According to a Vite advisory published in April 2026, the flaw can let an unauthenticated attacker bypass security restrictions through query parameter manipulation and leak sensitive data, including files that the server.fs.deny setting is supposed to block. For an application to be affected, three conditions must be met: the Vite development server must be explicitly exposed to the network using --host or server.host; the sensitive file must exist in the allowed directories specified by server.fs.allow; and the sensitive file must be denied with a pattern that matches a file by server.fs.deny. Under default configurations Vite binds to localhost, so owners who do not change that are not reachable. F5 Labs notes that attackers can issue an HTTP GET request to the /@fs/ endpoint, reference a sensitive file path, and append bypass query parameters such as ?raw, ?import&raw, or ?import&url&inline. This causes the server to process the request while undermining the server.fs.deny check, and the contents of the requested file are returned in plaintext in the HTTP response body.

F5 Labs observed several requests consistent with this flaw being used for reconnaissance and data extraction. The targets included environment configurations, AWS credentials, AWS configurations and backups, infrastructure state files such as terraform.tfstate and serverless.yml, Azure profiles, and system memory and environment details including /etc/passwd, /proc/self/environ, /proc/1/environ, and /proc/self/cwd/.env. Researchers said probing /proc/self/cwd/.env demonstrates an understanding of the deployment stack, because it reads the active .env file relative to the running process without needing to guess the absolute web application path. In a real compromise, such plaintext files can expose API secrets, database passwords, and cloud administrative credentials, giving an attacker unauthorized access to the cloud accounts and infrastructure those credentials protect.

The campaign also used several evasion techniques. F5 Labs reports that the malicious requests carried bogus User-Agent headers impersonating major web crawlers and artificial intelligence bots, including Googlebot, ClaudeBot, GPTBot, PerplexityBot, OAI-SearchBot, and Amazonbot. The attackers injected forged X-Forwarded-For and X-Real-IP values such as 34.94.237[.]62 and 104.28.219[.]193, which can be used to get around IP-based access lists and complicate log analysis. A significant portion of the malicious activity originated from the United States, Belgium, the Netherlands, Singapore, and Taiwan, and the attackers used Google Cloud Platform IP ranges in the 34.x and 35.x blocks to blend in with normal cloud traffic.

The practical risk is highest for development or test servers that have been left publicly reachable, because Vite is not designed to be a secure production server. If an attacker can read .env files, Terraform state files, or cloud profile files, they may obtain long-lived credentials that allow them to access the production cloud environment, change resources, or move to other systems. For website owners, businesses, and IT teams, the incident is a reminder that development servers and build tools should never be exposed to the internet, and that default configurations should be reviewed after any deployment change. Administrators should also check web server logs for requests to /@fs/ and for the bypass query parameters, and treat any exposure as an incident if sensitive files were returned. Because the attack requires only a crafted URL, any publicly reachable Vite development server should be treated as a potential target. For teams that manage public-facing infrastructure, AEU-I provides security-focused IT and infrastructure consulting to help review exposure and tighten server configurations.

Si të Mbroheni

  1. Nëse përdorni një server zhvillimi Vite, mos e ekspozoni në internet duke përdorur opsionin --host ose cilësimin server.host; mbajeni vetëm në localhost.
  2. Përdorni një rrjet privat ose një mjet që krijon një lidhje private të sigurt me kompjuterin tuaj, në vend që të hapni serverin e zhvillimit në internetin publik.
  3. Kontrolloni regjistrat e aksesit të faqes tuaj të internetit ose serverit për kërkesa që përmbajnë /@fs/ dhe bllokojini ose hetojini ato menjëherë.
  4. Mbajini Vite dhe të gjitha mjetet e zhvillimit të përditësuara me arnimet më të fundit të sigurisë.
  5. Mos ruani fjalëkalime të vërteta cloud, çelësa API ose skedarë konfigurimi brenda një dosje projekti që një server zhvillimi mund t'i shërbejë.
  6. Nëse përdorni Docker për zhvillim, sigurohuni që porta e serverit të zhvillimit të mos jetë e publikuar në internetin publik.

Dobësitë & Zgjidhjet

  • CVE-2026-39364 A high-severity Vite vulnerability that can let an unauthenticated attacker bypass server.fs.deny restrictions via query parameter manipulation, as detailed in Vite's April 2026 advisory; affected deployments should remove public exposure. Shiko zgjidhjen & detajet →

Termat e Shpjeguar

  • Vite Një mjet që zhvilluesit përdorin për të ekzekutuar një server lokal web gjatë ndërtimit të një faqe interneti, normalisht i arritshëm vetëm në të njëjtin kompjuter.
  • CVE-2026-39364 Një identifikues unik publik për cenësinë specifike të sigurisë në Vite të përshkruar në këtë raport.
  • server.fs.deny Një cilësim i Vite që i tregon serverit të zhvillimit se cilat skedarë duhet të refuzojë t'i dërgojë, si skedarët e fjalëkalimeve.
  • /@fs/ endpoint Një adresë e veçantë web e përdorur nga Vite për të shërbyer skedarë direkt nga sistemi i skedarëve të kompjuterit.
  • User-Agent header Një rresht teksti që një shfletues ose bot dërgon me çdo kërkesë për të identifikuar se çfarë softueri po bën kërkesën.
  • X-Forwarded-For Një rresht teksti që mund të mbajë adresën origjinale të kompjuterit të një kërkese dhe mund të përdoret për të anashkaluar listat e aksesit bazuar në IP.
  • Cloud credentials Çelësa të fshehtë dhe fjalëkalime që lejojnë akses në shërbimet cloud si AWS ose Azure.

Shërbime AEU të lidhura

  • AEU Data Infrastrukturë cloud dhe të dhënash