Skip to content
Misconfiguration Write-up Beginner

Dont Trust Links Unveiling Hidden Phishing Threats In Github And Gitlab

Attackers can upload files to unpublished comments on GitHub and GitLab, and the files remain accessible via a CDN URL that appears to belong to a trusted repository. They can then distribute these links in phishing messages to trick users into downloading malware.

elniak Follow

Published on infosecwriteups.com

In the vast, interconnected world of software development, platforms like GitHub and GitLab serve as crucial hubs for collaboration and innovation.

ElNiak, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

Attackers could trick users into downloading malware from links that appear to be hosted on trusted repositories, potentially leading to malware infections such as the Redline Stealer Trojan.

What the attacker needed

A GitHub or GitLab account; ability to comment on a repository; victim clicks a link

The fix

The platforms should restrict access to files attached to unpublished comments or remove them from the CDN, and users should verify links and use URL scanners.

How it was found

  1. Create a comment on a repository and attach a malicious file.
  2. Do not publish the comment.
  3. Obtain the automatically generated CDN URL for the file.
  4. Distribute the URL via phishing emails, social media, or compromised websites.

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 write-up has not been written yet. The Original tab links to the source.

When you comment on a GitHub or GitLab project, you can attach a file. Even if you never publish that comment, the file is stored on the platform's servers and gets a public web address. An attacker can upload a harmful file this way and share the link, which looks like it comes from a trusted project, so people may download it without suspicion.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by elniak

View all

28 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.