Closed Bug 1763395 Opened 4 years ago Closed 4 years ago

Archived GitHub repo still contains valid DataDog API information

Categories

(Websites :: Other, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: geeknik, Unassigned)

Details

(Keywords: reporter-external, sec-low, wsec-disclosure, Whiteboard: [reporter-external] [web-bounty-form] [verif?])

Attachments

(1 file)

Whilst scanning GitHub for secrets and tokens, I discovered that an archived GitHub repo associated with Mozilla still contains valid DataDog API keys. It is recommended that this API keys be expired and rotated and not re-published to GitHub.

Repo: https://github.com/mozilla/testpilot/
URL: https://github.com/mozilla/testpilot/blob/96d4f1f310c65e6b8931c204974b840a3bdd839f/docker-compose-base.yml

POC: curl -H "Content-Type: application/json" -H "DD-API-KEY: 4f3b967bbf13c7769ac4fa89efda0fae" -H "DD-APPLICATION-KEY: ddd45a7b3a3cb90ff1baf20ae8cfab04d1937038" https://api.datadoghq.com/api/v2/users | jq

Flags: sec-bounty?

Hello Brian,

Thank you for your report.

I can confirm that the API and APP keys are still valid.

 % curl -X GET "https://api.datadoghq.com/api/v1/validate" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}"

{"valid":true}

I could also see a list of users which includes email addresses, their IDs and profile images.

I am trying to find an API endpoint that could give us information about the user who owns these keys but could not find something like that so far.

Thanks,
Frida

Type: task → defect
Keywords: wsec-disclosure
Status: NEW → RESOLVED
Closed: 4 years ago
Keywords: sec-high
Resolution: --- → FIXED

We were able to track down the owners of Datadog and they revoked the API key.

Some notes for reference:

  • the key was an application key created by an employee.
  • the key had the same permissions as the user who has the Datadog Standard Role
  • according to the Datadog documentation, users with the standard role are allowed to view and modify all monitoring features that Datadog offers, such as dashboards, monitors, events, and notebooks. Standard users can also invite other users to organizations
  • we do not see any suspicious or malicious activity on the user account, we don't see any activity in the past year.
  • we did not find any suspicious users who were invited to the org.
Flags: sec-bounty? → sec-bounty+
Keywords: sec-high → sec-low

Hello Brian,

We had a chance to discuss the bounty yesterday. We paid it out as a low severity issue since the account did not contain any data.

Thank you again for your report. Please let us know how you would like to be mentioned on our hall of fame.

Thanks,
Frida

Group: websites-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: