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.
Originally disclosed on HackerOne
- 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
- 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.
Impact
An attacker can utilize the token on the api.sifchain.finance API
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.