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.
In the vast, interconnected world of software development, platforms like GitHub and GitLab serve as crucial hubs for collaboration and innovation.
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
- Create a comment on a repository and attach a malicious file.
- Do not publish the comment.
- Obtain the automatically generated CDN URL for the file.
- 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.