Unpatched Travis CI API Bug Exposes 1000’s of Secret Consumer Entry Tokens

Unpatched Travis CI API Bug Exposes 1000’s of Secret Consumer Entry Tokens

Jun 14, 2022Ravie Lakshmanan

An unpatched safety concern within the Travis CI API has left tens of hundreds of builders’ person tokens uncovered to potential assaults, successfully permitting risk actors to breach cloud infrastructures, make unauthorized code adjustments, and provoke provide chain assaults.

“Greater than 770 million logs of free tier customers can be found, from which you’ll simply extract tokens, secrets and techniques, and different credentials related to well-liked cloud service suppliers resembling GitHub, AWS, and Docker Hub,” researchers from cloud safety agency Aqua mentioned in a Monday report.

Travis CI is a steady integration service used to construct and check software program tasks hosted on cloud repository platforms resembling GitHub and Bitbucket.

The problem, beforehand reported in 2015 and 2019, is rooted in the truth that the API permits entry to historic logs in cleartext format, enabling a malicious get together to even “fetch the logs that have been beforehand unavailable through the API.”

The logs go all the way in which again to January 2013 and up till Might 2022, starting from log numbers 4,280,000 to 774,807,924, that are used to retrieve a novel cleartext log by the API.

What’s extra, an extra evaluation of 20,000 logs has revealed as many as 73,000 tokens, entry keys, and different credentials related to numerous cloud providers like GitHub, AWS, and Docker Hub.

User Access Tokens

That is regardless of Travis CI’s makes an attempt to rate-limit the API and mechanically filter out safe atmosphere variables and tokens from construct logs by displaying the string “[secure]” of their place.

Read Also:   Is Google Search getting worse?

One of many important insights is that whereas “github_token” was obfuscated, 20 different variations of this token that adopted a distinct naming conference — together with github_secret, gh_token, github_api_key, and github_secret — weren’t masked by Travis CI.

“Travis CI slowed down the rate of API calls, which hinders the power to question the API,” the researchers mentioned. “On this case nevertheless, this was not sufficient. A talented risk actor can discover a workaround to bypass this.”

“Nonetheless, combining the convenience of accessing the logs through the API, incomplete censoring, accessing ‘restricted’ logs, and a weak course of for price limiting and blocking entry to the API, coupled with a lot of probably uncovered logs, leads to a important scenario.”

Travis CI, in response to the findings, has mentioned the difficulty is “by design,” necessitating that customers comply with finest practices to keep away from leaking secrets and techniques in construct logs and periodically rotate tokens and secrets and techniques.

The findings are significantly important within the wake of an April 2022 assault marketing campaign that leveraged stolen GitHub OAuth person tokens issued to Heroku and Travis CI to escalate entry to NPM infrastructure and clone choose personal repositories.

Discovered this text fascinating? Comply with us on Twitter and LinkedIn to learn extra unique content material we submit.

Supply By https://thehackernews.com/2022/06/unpatched-travis-ci-api-bug-exposes.html

Find out how to seize consumer and worker satisfaction Previous post Find out how to seize consumer and worker satisfaction
Apple AR/VR headset reportedly has a separate battery pack Next post Apple AR/VR headset reportedly has a separate battery pack