Skip to content
Info disclosure Disclosed report Beginner

Open SonarQube instance leaking internal source code

An open SonarQube instance exposed source code and issue data for multiple projects, including authentication and API-related code. An attacker could access this information to learn about vulnerabilities and internal details.

aksquare Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 24 hours
  • Fixed in 4 days
  • Disclosed after 35 days

Summary

I came across an open SonarQube instance which can be found here: http://34.238.92.229:9000/ In this, there are 10 projects with a total of around 100k lines of code To identify the owner, I went to the Issues tab and expanded the list of authors. There were 29 people there, and many of them were Equifax employees (I reached this conclusion because they have @equifax.com email id). Some of the projects there in the instance are related to authentication and APIs. One of the largest projects there is called zoomv2 Owing to the sensitive nature of the leakage, I did not dig deeper through the source code, however, I believe that this much information is enough for a POC. However, if you need more information, then I will be happy to dig through the source code there and give specific examples of how the information can be misused.

Steps to recreate:

  1. Go to http://34.238.92.229:9000/
  2. There you can click on the issues tab, and then on the bottom left corner, click on Author
  3. You will see a list of people who have contributed to the projects and can confirm that many of the people are Equifax employees
  4. Go to Projects tab and see all the projects and their source code that are leaked

Fix

Put the instance behind a login screen, and check if unauthorised users have accessed this instance. If possible revoke access to any API keys or other credentials that were exposed in this instance

*I understand that there were other people from other companies in this instance too, and that this might not be an instance owned by Equifax. However, even though Equifax was not the owner, it still is involved with this particular instance, and thus I decided to report it to you.

Impact

SonarQube is used to automate finding issues and vulnerabilities in source code. By leaving this instance open, an attacker can get access to all the source code, the issues, and the vulnerabilities that the particular code has. If this code is in a production environment, then this information is extremely dangerous. And even if the project is not in production, this kind of information can have internal APIs, IPs and other sensitive data that can be taken advantage of in other ways.

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

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

Root cause

Likely the SonarQube instance was deployed without authentication enabled, allowing public access.

Impact

An attacker could access all source code, issues, and vulnerabilities, which could be dangerous if the code is in production or contains sensitive internal data.

What the attacker needed

None

The fix

The instance should be put behind a login screen, and any exposed credentials should be revoked.

How it was found

  1. Go to the SonarQube instance URL.
  2. Click on the Issues tab and then on Author to see contributors.
  3. Confirm that many contributors are employees of a company.
  4. Go to the Projects tab to see all projects and their source code.

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.

SonarQube is a tool that scans source code for bugs and security problems. This instance had no login, so anyone could see the code and the list of problems. That could let someone find weaknesses to attack.

What is Info disclosure?

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

More from Equifax-vdp

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.