URLHunter Exposes VPN Credentials Used to Gain Access
Attackers used an open-source URL shortening tool to collect VPN configuration profiles that contained user email addresses, passwords, and certificates. They then used these credentials to access the internal network, escalate privileges, and ultimately achieve remote code execution and obtain AWS credentials and SSH keys.
bishopfox.com
Published on bishopfox.com
In the third part of our “Reports from the Field” series, we’ll explore how attackers utilize all tools available (including open source) to dig for an exploit.
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 VPN configuration profiles were publicly accessible via shortened URLs, and the organisation did not adequately protect or monitor these sensitive files.
Impact
The attackers achieved full compromise of the environment, including internal network access, remote code execution, and retrieval of AWS credentials and SSH keys.
What the attacker needed
VPN profiles exposed via shortened URLs; access to URLHunter tool; internal network reachable via VPN
How it was found
- Use URLHunter to collect and resolve shortened URLs.
- Identify VPN configuration profiles containing credentials and certificates.
- Use the profiles to authenticate to the VPN and access the internal network.
- Scrape LinkedIn to guess which users have higher access, then test those accounts.
- Perform a ping scan to find a service discovery endpoint that lists microservices.
- Exploit an outdated Elasticsearch instance to achieve remote code execution, then retrieve AWS credentials and an SSH deploy key.
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 VPN is a secure connection to a private network. Here, VPN configuration files that included usernames, passwords, and certificates were accidentally exposed through shortened URLs. Attackers found them and used them to log in, then moved deeper into the company's systems.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.