Access Management , DevSecOps , Identity & Access Management

Travis CI Flaw Exposed Secrets From Public Repositories

Critics Say Travis CI's Security Bulletin Is Insufficient
Travis CI Flaw Exposed Secrets From Public Repositories

Travis CI, a Berlin-based continuous integration vendor, has patched a serious flaw that exposed signing keys, API keys and access credentials, potentially putting thousands of organizations at risk.

See Also: A Guide to Passwordless Anywhere

Given the potential impacts, the company is coming under criticism for not describing the security issue in more detail.

"Anyone could exfiltrate these [secrets] and gain lateral movement into 1000s of orgs," tweets Péter Szilágyi, who is the team lead for the Ethereum cryptocurrency project.

Travis CI has patched the flaw, which is tracked as CVE-2021-41077. It has advised that organizations should change their secrets immediately.

The vulnerability, which was discovered by Felix Lange, was reported to Travis CI on Sept. 7, Szilágyi tweeted. Travis CI says it began patching the issue on Sept. 3, which would indicate it had picked up on the problem before it was notified, but the timeline isn't clear.

Continuous integration testing is the process by which developers ensure their software builds will work across different system environments. As of 2018, some 900,000 open-source projects were using Travis CI, according to this academic paper on continuous integration.

Travis CI officials couldn't be immediately reached for comment.

Pulling Secrets

The effects of the vulnerability meant that if a public repository was forked, someone could file a pull request and then get access to the secrets attached to the original public repository, according to Travis CI's explanation.

Travis CI's documentation says that secrets shouldn't be available to external pull requests, says Patrick Dwyer, an Australian software developer who works with the Open Web Application Security Project, known as OWASP.

"They [Travis CI] must have introduced a bug and made those secrets available," Dwyer says.

Travis CI's flaw represents a supply chain risk for software developers and any organization using software from projects that use Travis CI, says Geoffrey Huntley, an Australian software and DevOps engineer.

"For a CI provider, leaking secrets is up there with leaking the source code as one of the worst things you never want to do," Huntley says.

Security Bulletin Fail

Travis CI has issued a security bulletin, but some are saying it's insufficient given the gravity of the vulnerability. Szilágyi alleges in a tweet that Travis CI underplayed the issue and silently patched it.

Travis CI mentions the vulnerability in two places on its websites. The first is on its blog under a headline Security Bulletin that has just two sentences: "As a reminder from the Support Team, cycling your secrets is something that all users should do on a regular basis per your company’s security process. If you are unsure how to do this please contact support and we would be happy to help you."

There's also another post in its Community Forums that gives a bit more detail.

Travis CI's post in its Community Forums

But Travis CI doesn't appear to have warned organizations how they can detect if their secrets have been stolen.

Dwyer says organizations could review their recent pull requests and see if any of them look suspicious. But the sparse notification from Travis CI doesn't give a lot of guidance to go on, Dwyer says.

"The problem with this sort of thing is you can probably tell after the event when you go to review the pull request: 'What have they done here? Like, this looks dodgy," Dwyer says. "But you find that out after they've already popped your creds."

Sean Wright, lead application security SME at Immersive Labs, says Travis CI should perform an audit to identify who was affected by this vulnerability and inform those organizations.

"Unfortunately, many of those affected likely don’t have any idea," Wright says. "Anyone who has a public repository on Travis CI should change their secrets immediately, and perform any additional actions such as certificate revocation for existing secrets."

Travis CI was acquired by a company called Idera in January 2019. Shortly afterward, it appears Travis CI began laying off some employees, and a crowdsourced effort on Twitter under the hashtag #TravisAlums sought to help those affected by getting them other jobs.


About the Author

Jeremy Kirk

Jeremy Kirk

Managing Editor, Security and Technology, ISMG

Kirk is a veteran journalist who has reported from more than a dozen countries. Based in Sydney, he is Managing Editor for Security and Technology for Information Security Media Group. Prior to ISMG, he worked from London and Sydney covering computer security and privacy for International Data Group. Further back, he covered military affairs from Seoul, South Korea, and general assignment news for his hometown paper in Illinois.




Around the Network

Our website uses cookies. Cookies enable us to provide the best experience possible and help us understand how visitors use our website. By browsing govinfosecurity.com, you agree to our use of cookies.