Loading HuntDB...

An “algobot”-s GitHub access token was leaked

Medium
A
Algolia
Submitted None
Reported by sainaen

Vulnerability Details

Technical details and impact analysis

Information Disclosure
An access token of [algobot] account was first leaked 2015-12-02 in this [Travis CI job log] of [instantsearch.js] project due to incorrect handling of output from command `git clone` (or a `ghpages` module to be more specific.) Since then, the configuration of that project seems to have been changed not to perform this operation ([last build] with token found is from 2016-01-06), but the [docsearch] project still [uses it] and leaks algobot's token with every build of the master branch, here's for example [the latest one.] This token has a `public_repo` scope, so it gives commit access to any public repositories its owner has access to. So both instantsearch.js and docsearch are affected. You may want to verify that there were no suspicious changes since the first leak. Unfortunately I didn't find any way to check the token usage history, so cannot help with that. Note that I did use this token to get its owner info (GET call to endpoint `https://api.github.com/user`) and repositories that belong to them (GET call to `https://api.github.com/user/repos`), but I didn't attempt to perform any other operations. Also, please be sure to avoid disclosing this issue accidentally (e.g. in commit messages), as I'm still working with others that have similar leaks. Revoking/rotating tokens without explanation with simple “updating the token” should be fine though, generally nobody pays attention to them. [algobot]: https://github.com/algobot [instantsearch.js]: https://github.com/algolia/instantsearch.js [docsearch]: https://github.com/algolia/docsearch [uses it]: https://github.com/algolia/docsearch/blob/master/scripts/docs/gh-pages.js#L10 [Travis CI job log]: https://travis-ci.org/algolia/instantsearch.js/jobs/94408476/#L460 [last build]: https://travis-ci.org/algolia/instantsearch.js/jobs/100608422#L462 [the latest one.]: https://travis-ci.org/algolia/docsearch/builds/203760306#L419

Report Details

Additional information and metadata

State

Closed

Substate

Resolved

Bounty

$100.00

Submitted

Weakness

Information Disclosure