Skip to content
Info disclosure Disclosed report Beginner

We are stealing the IP addresses of those who opened our project.

A GitLab project badge could be configured to load an external image, causing visitors' browsers to send requests to an attacker-controlled server and reveal their IP addresses. The attacker could then log those IP addresses.

GitLab

Originally disclosed on GitLab

  • Fixed in 18 months
  • Disclosed after 18 months

HackerOne report #506507 by iframe on 2019-03-07, assigned to dappelt:

Hello, I discovered a vulnerability that allows you to steal the IP addresses of those who open our project, this is already very funny for me, because this is the third such vulnerability haha)

gith1.png
gith1.png From the original on GitLab

open my project and i can steal your IP
https://gitlab.com/i[REDACTED]t

GET from [REDACTED]

Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7  
Accept-Encoding: gzip, deflate, br  
Referer: https://gitlab.com/  
Accept: image/webp,image/apng,image/*,*/*;q=0.8  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36  
Connection: keep-alive  
Host: sia.one  
Content-Length:   
Content-Type:  

Steps:

  1. open https://gitlab.com/ /test/edit
  2. open Badges

[REDACTED].png)
3) Inject

Impact

We are stealing the IP addresses of those who opened our project.

Attachments

Warning: Attachments received through HackerOne, please exercise caution! [REDACTED]

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.

How it worked

What the attacker needed

A GitLab project; victim visits the project page

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 you visit a web page, your browser often loads images from other websites. Those other websites can see your IP address, which is like your computer's return address on the internet. Here, a GitLab feature that lets you add a badge image was abused to make visitors' browsers contact an attacker's server, revealing their IP addresses.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.