Skip to content
Info disclosure Disclosed report Beginner

Exposed Openapi Token

A secret token was committed to the history of multiple project files and remained accessible via a raw GitHub URL. An attacker could use this token to access the api.sifchain.finance API.

John Jackson Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 46 days

Summary While looking for secrets, I noticed that Developers had removed a swagger spec draft. The URL had a committed token in the history of multiple project files: ui/core/src/api/transactionsService.ts ui/core/src/api/tendermintService.ts ui/core/src/api/stakingService.ts ui/core/src/api/slashingService.ts ui/core/src/api/sifdistService.ts ui/core/src/api/bankService.ts ...etc, etc

Steps To Reproduce

  1. Look at the file history of the the github ui/core/src/api and check for secrets. I will provide exposed file history if requested further.

Proof https://raw.githubusercontent.com/Sifchain/sifnode/c1bb5a268da8b519d0fc90f81fa194d31c0f82b3/api/openapi/swagger.yml?token=AAJSXWM6CDXYAEETSC6BJ2S7Q2JLS

Impact

An attacker can utilize the token on the api.sifchain.finance API

The original report as published on HackerOne, by johnjhacking. 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, a secret token was committed to source code and remained in the file history even after the file was removed.

Impact

An attacker could use the token to access the api.sifchain.finance API.

What the attacker needed

Access to the public GitHub repository

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.

A secret token is like a password that lets someone use a service. Here, developers accidentally saved this token in the history of their code files, and it was still visible online. Anyone who found it could use it to access the API, which is the part of the website that handles data.

What is Info disclosure?

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

More from Sifchain

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.