ESCALATED: Blind SSRF on FogBugz
The FogBugz import feature in GitLab accepted a user-supplied URL and made a server-side HTTP request to it, so an attacker could make the GitLab server send requests to internal addresses. The reporter demonstrated this by pointing the import at a localhost address and observing the request arrive on a listener.
GitLab
Originally disclosed on GitLab
- Fixed in 12 months
- Disclosed after 12 months
HackerOne report #505844 by ngalog on 2019-03-06, assigned to asaba:
Summary:
Another blind ssrf found in fogbugz import
Steps To Reproduce:
- visit https://:gitlab_instance/import/fogbugz/new
- fill in details as below
http://127.5.5.5:1234
something
something
setup a listener in gitlab instance on port 1234
- click continue to next step
- you will see POST http request going to your localhost
Impact
blind post ssrf
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 FogBugz import endpoint did not validate or restrict the user-supplied source URL before the server made a request to it.
Impact
An attacker could cause the GitLab server to send POST requests to internal or localhost addresses, enabling blind probing of internal services; the report does not show data being read back.
What the attacker needed
Access to the GitLab import feature; ability to run a listener on the target host
How it was found
- Open the FogBugz import page on the GitLab instance.
- Enter a URL pointing at a localhost address and fill in the remaining fields.
- Start a listener on the chosen port on the GitLab instance.
- Continue to the next step and observe the POST request arriving at the listener.
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.
When a website fetches a URL on your behalf, it may be tricked into fetching addresses that only the server can reach, such as internal services. This is called server-side request forgery (SSRF). Here the import tool let the user choose a source address, and the server blindly requested it, so an attacker could probe internal systems.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.