External Service Interaction | https://█████████.mil
The web server accepted attacker-supplied host headers and used them to make DNS and HTTP requests to an external server. An attacker could use the server as a proxy to reach internal or third-party systems.
- Disclosed after 12 days
Description:
I am able to trick web server ███████.mil into making DNS and HTTP requests to my vps server and burp collaborator.
Walkthrough Section:
- Create an account using the registration form https://████████.mil/█████/accounts/register/
███████
- Provide the required information to create a POST request.
████████
- Intercept the request and add the following headers below and add your external webserver. You will have the ability to send requests as the web server as a proxy.
X-Forwarded-Host: <ExternalWebServer> X-Host: <ExternalWebServer> X-Forwarded-Server: <ExternalWebServer>
███
█████
- I am able to confirm I received not only DNS Requests but also HTTP requests from ██████████.mil. I have also attached a spreadsheet that shows every request i made and what IP address they originated from. The screen shot below on the left window is my burp collaborator you can see the log of interactions. On the right is my vps server.. I setup my HTTP Server and i made multiple requests from that webserver, you can see the interaction as well.
████████
Impact
The ability to send requests to other systems can allow the vulnerable server to be used as an attack proxy. By submitting suitable payloads, an attacker can cause the application server to attack other systems that it can interact with. This may include public third-party systems, internal systems within the same organization, or services available on the local loopback adapter of the application server itself. Depending on the network architecture, this may expose highly vulnerable internal services that are not otherwise accessible to external attackers.
Step-by-step Reproduction Instructions
- Navigate to https://██████.mil/███/accounts/register/?██████████
- Following the walkthrough section above
Suggested Mitigation/Remediation Actions
If this is intended behavior you should be aware of the types of attacks that can be performed via this behavior and take appropriate measures. These measures might include blocking network access from the application server to other internal systems, and hardening the application server itself to remove any services available on the local loopback adapter.
If the ability to trigger arbitrary external service interactions is not intended behavior, then you should implement a whitelist of permitted services and hosts, and block any interactions that do not appear on this whitelist.
Resources:
Impact
The ability to send requests to other systems can allow the vulnerable server to be used as an attack proxy. By submitting suitable payloads, an attacker can cause the application server to attack other systems that it can interact with. This may include public third-party systems, internal systems within the same organization, or services available on the local loopback adapter of the application server itself. Depending on the network architecture, this may expose highly vulnerable internal services that are not otherwise accessible to external attackers.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application trusted client-supplied host headers and used them when making outbound DNS and HTTP requests.
Impact
The server could be used as an attack proxy to reach third-party or internal systems, potentially exposing services not otherwise accessible to external attackers.
What the attacker needed
A free account; ability to intercept requests; an external server to receive requests
The fix
The application should restrict outbound requests to a whitelist of permitted hosts and block network access from the server to internal systems.
How it was found
- Create an account using the registration form.
- Submit the registration form to generate a POST request.
- Intercept the request and add host-related headers pointing to an external server.
- Observe DNS and HTTP requests arriving at the external server from the target.
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 report has not been written yet. The Original tab links to the source.
Some web servers trust extra headers that tell them which hostname they are serving. Here the server used those headers to look up and contact whatever address the attacker supplied. That lets an attacker make the server send requests on their behalf, which can be used to probe systems the attacker cannot reach directly.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.