Skip to content
SSRF Disclosed report Beginner

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

  1. Go to http://{host}/projects/new".
  2. Click to "Repo by URL".
  3. Enter the following in Git repository URL field. http://100.64.0.5:9999/ssrf
  4. Enter other required fields.
  5. 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


  1. 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.

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.