Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Contribution] AWS CodeBuild (2023) - leak the access token used to connect AWS CodeBuild with GitHub or Bitbucket #295

Closed
ramimac opened this issue Apr 18, 2024 · 0 comments
Labels
addition New security issue or vulnerability aws Issue related to an AWS service

Comments

@ramimac
Copy link
Contributor

ramimac commented Apr 18, 2024

Summary (give a brief description of the issue)

The vulnerability was a post-exploitation attack on AWS's CodeBuild service. It required high privileges to exploit, but with these privileges, an attacker could exfiltrate tokens to third-party applications stored within CodeBuild. This could potentially enable an attacker to pivot from AWS CodeBuild to other platforms, such as GitHub or Bitbucket. The leaked token could be used to access the platform and the token’s authorized repositories.

In addition to providing potentially unauthorized access to these repositories, the vulnerability also allowed an attacker to abuse the token’s potential write access. Since legitimate use of this token via CodeBuild does not allow this, the vulnerability broke the intended functionality of the CodeBuild platform and introduced potential supply chain security risks if an attacker used it to introduce vulnerabilities or malicious code into a company’s products.

References (provide links to blogposts, etc.)

https://www.halborn.com/blog/post/halborn-discovers-and-discloses-vulnerability-in-aws-code-build

@ramimac ramimac added the addition New security issue or vulnerability label Apr 18, 2024
ramimac added a commit to ramimac/open-cvdb that referenced this issue Apr 19, 2024
@korniko98 korniko98 added the aws Issue related to an AWS service label Apr 28, 2024
@mer-b mer-b closed this as completed in 11800fd Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition New security issue or vulnerability aws Issue related to an AWS service
Projects
None yet
Development

No branches or pull requests

2 participants