Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Docker Hub security incident 2024.09.24

xbirt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2024

Docker Hub had a security breach during which OAuth credentials "may" have been exposed, presumably for all Docker accounts. Their email mentions that they identified the issue on 2024.09.24, but they fail to mention how long it may have been going on prior to that. They invalidated the OAuth credentials, but the email that informs the users about this was sent on 2024.09.26, which provides a large enough window for the attacker to have cloned plenty of private repositories.

I have a Docker Hub account which was connected to my Bitbucket account which also contains private code. I failed to revoke the OAuth credentials years ago when I stopped using the integration and I completely forgot about it - my bad there.

I would like to find out if the credentials have been used to clone the source code. It's not possible to view such accesses in the audit log, even though an issue about this has been created ever since 2013 (BB-9452).

Unfortunately, I have a free account, so I can't contact support directly. If anyone else that can contact support asks them about this issue, I would also like to know if any private code was cloned by using the exposed OAuth credentials.

I guess qualified support personnel could interrogate the logs database and look for Docker Hub OAuth credentials (presumably for multiple accounts) being used from IP addresses that do not belong to the IP range(s) used by Docker Hub.

For reference, here's the email received from Docker Hub:
"Hello,


On September 24, 2024 we identified suspicious activity on our network. Upon identifying this potential security issue, we initiated an investigation.

We have discovered that OAuth credentials used for integration between Docker Hub Autobuilds and Bitbucket may have been exposed. While at this time there is no evidence that these credentials were accessed, your account is or was connected to Bitbucket and may potentially be affected.

To mitigate any potential risk, we have invalidated the OAuth credentials that allow access to Bitbucket repositories for Autobuilds. As a result, any newly triggered builds linked to Bitbucket will be stuck in a pending state without your intervention.

Next Steps:
  • If you are actively using Autobuilds with Bitbucket, you will need to reconnect your account. Please follow the steps outlined here to set up a new Bitbucket connection through Docker Hub.
  • We recommend that all users review their source repositories, especially those authorized for Autobuilds.
We are continuing to investigate this incident, and if we identify any additional impact or broader scope, we will notify you promptly.

Should you encounter any issues or require further assistance, please don’t hesitate to reach out to our support team.

Thank you for your understanding and cooperation as we work diligently to resolve this matter.

Thank you,
The Docker Team"

2 answers

1 accepted

0 votes
Answer accepted
xbirt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 3, 2024

Thank you very much @Ben for looking into this.

To sum up for others who have been affected, there was no unauthorized access to my account using the OAuth tokens from Docker Hub during the past 30 days.

The Docker Hub team also got back to me and mentioned that they have no reason to believe the unauthorized access predates 24.09.2024. Furthermore, they mentioned ”The OAuth credentials alone are not sufficient alone to access customer data; another secret is required as well.” - I'm not sure if this means that the client secret wasn't exposed, but even if it does, in some cases the token would be sufficient.

In conclusion, it looks like the incident didn't result in private code getting exfiltrated. However, that is the case only for my account, and I guess it cannot be generalized. It's also worth noting that the Bitbucket team is still looking into this incident.

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2024

Hi @xbirt 

I have opened a ticket with our support team on your behalf. Please check the email address registered with the account you used to raise this ticket for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events