Escalating a GitHub leak to takeover entire organization
The original lives on blog.shashank.co
We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
What the report shows
The leaked data appears in the report as a snippet of a values file. The report shows a snippet of a values file with default credentials for a Matrix bot account. and the report frames the finding as a leak that could be escalated to take over an entire organisation. The bounty was 4,000 USD.
> data:
> matrixbot-username: {{ .Values.matrixbot.username | default "some_leaked_username" | b64enc }}
> matrixbot-password: {{ .Values.matrixbot.password | default "some_leaked_password" | b64enc }}
The snippet shows two keys, matrixbot-username and matrixbot-password, each rendered through the Helm default function and then base64-encoded with b64enc. The default argument is a fallback value that is used when the corresponding value under .Values.matrixbot is not set. In other words, if the chart is deployed without overriding those values, the bot account is provisioned with the fallback username and password baked into the chart.
The report then quotes the project description:
Matrix is an open-source project that publishes the Matrix open standard for secure, decentralized, real-time communication, and its Apache-licensed reference implementations.


The two images sit directly after that description. The report does not caption them, so what they show beyond the surrounding context, a Matrix deployment and the leaked values, is not stated in the text.
The report stops at this point. It does not describe the requests used to reach the bot, the responses received, the account or organisation that was affected, or the remediation applied. The only outcome it records is the 4,000 USD bounty.
Root cause
The snippet shows a secret used as a default value inside a template. Helm charts are frequently published to public repositories and chart indexes, so anything written into values.yaml or into a template's default call is effectively public. A fallback credential is meant to keep a deployment working when an operator forgets to set a value, but it also guarantees that every deployment which does not override it shares the same known username and password. Base64 encoding does not change this: b64enc is an encoding, not encryption, and anyone reading the chart can decode the value.
Impact
The title claims escalation from the leak to takeover of an entire organisation, but the body does not document it. The report does not explain how the leak would lead to an organisation takeover. An attacker who knows the default credentials could authenticate as the bot and act with its permissions. The report does not document which rooms, users or administrative functions were reachable, so the exact blast radius is not established in the text. The report records a 4,000 USD bounty.
How this kind of bug works
Default credentials in shipped artefacts are a class of secret exposure. The mechanism is simple: a vendor or maintainer needs the software to work out of the box, so a fallback account is created with a fixed username and password. Because the artefact is distributed publicly, chart, container image, installer or source archive, the credential is distributed with it. Every installation that does not change the default shares one identity.
The risk multiplies when the artefact is deployed at scale. A single chart used by many organisations means one credential known to everyone who reads the repository, and the account it protects may be reachable from the internet if the service it belongs to is exposed. Defences are straightforward: never ship a working default secret, generate random credentials at install time, require the operator to supply a value and fail the deployment when it is missing, and rotate any credential that has ever been published.
How to test for it
- Identify the deployment artefacts a target publishes: Helm charts, Docker Compose files, Terraform modules, installer scripts, example configuration.
- Read the templates and values files for
defaultcalls, hard-coded strings, and example blocks that look like credentials. Decode anything base64-encoded. - Determine whether the default is actually used when the value is unset, and whether the resulting account exists on a reachable service.
- Attempt authentication with the default credential against the service the artefact configures, using a test account or a controlled environment where possible.
- If authentication succeeds, record the permissions of the account and the resources it can reach, without modifying data.
A positive result is a successful login with a credential taken verbatim from a public artefact, plus evidence of the account's privileges. Common false positives are placeholder values that are never used because the deployment requires an override, example files that are not part of the shipped package, and credentials that have already been rotated so the published value no longer works. Confirm the value is live before reporting.
How it is fixed
The standard fix is to remove the fallback secret from the chart and require the operator to provide it. Templates should fail rendering when a required value is absent rather than substituting a default. Where a default is unavoidable, it should be a random value generated per installation, not a fixed string. Any credential that has been published should be rotated, and the account it belonged to should be reviewed for the permissions it held. Publishing a chart should include a check that no secret-like values are present.
Hunting notes
This bug class hides in the places where convenience meets distribution: public chart repositories, container images with baked-in configuration, quick-start guides, and CI configuration that references example secrets. Recon signals include a project that publishes deployment manifests alongside its source, templates that use default with credential-like strings, and documentation that shows a login with a fixed username. To make a report land, show the artefact, the exact value, a successful authentication, and the privileges obtained, and keep the proof minimal so the program can verify it quickly.
What happened, in plain words
This report is about a values file that contained a default username and password for a Matrix bot. The report's title describes the leak as escalating to takeover of an entire organisation. The program paid a 4,000 USD bounty for it.
To follow this, you need a few ideas explained from zero.
Kubernetes is a system for running software across many computers, usually servers, and keeping it running. Think of it as a manager that decides which machine runs which piece of software and restarts things that fail.
Helm is a tool that packages software for Kubernetes. A Helm package is called a chart. A chart is a folder of files that describe what to install and how to configure it. One of those files, called a values file, holds the settings: names, sizes, addresses, and sometimes credentials. Charts are often published publicly so anyone can download and install them.
Matrix is a communication protocol, a standard for chat and real-time messaging. The report quotes the project's own description:
Matrix is an open-source project that publishes the Matrix open standard for secure, decentralized, real-time communication, and its Apache-licensed reference implementations.
A bot is an automated account, a piece of software that logs in like a person and performs tasks, for example posting messages or managing chat rooms. A bot needs a username and password just like a person does.
Base64 is a way of writing data using only letters, digits and a couple of symbols. It is not a lock and it is not a secret code: anyone can turn base64 text back into the original with a single command. It is like putting a letter in a clear plastic sleeve, not a sealed envelope.
What the report shows
The leaked data appears in the report as a snippet of a values file:
> data:
> matrixbot-username: {{ .Values.matrixbot.username | default "some_leaked_username" | b64enc }}
> matrixbot-password: {{ .Values.matrixbot.password | default "some_leaked_password" | b64enc }}
Line by line:
data:starts a section of settings.matrixbot-usernameandmatrixbot-passwordare the two settings: the bot's username and the bot's password.{{ ... }}marks a template instruction. Helm fills it in when the chart is installed..Values.matrixbot.usernamemeans "the username the person installing the chart supplied".default "some_leaked_username"means "if they supplied nothing, use this fallback instead". The same applies to the password line.b64encconverts the result to base64 before storing it.
So if the values are not supplied, the template falls back to the username and password written into it. Anyone who reads the file knows those credentials. The base64 step changes nothing about that, since anyone can decode it.


The two images follow the Matrix description in the report. They are not captioned, so the text does not say what they show beyond the surrounding context of a Matrix deployment and the leaked values.
The report stops there. It does not describe the requests used to reach the bot, the responses received, which account or organisation was affected, or how the problem was fixed. The only outcome it records is the 4,000 USD bounty.
In general, how this kind of bug works
This is a case of default credentials shipped inside a public artefact. The pattern is common: a maintainer wants the software to work immediately after installation, so a fallback account is created with a fixed username and password. Because the package is public, the credential is public too. Every installation that does not change it shares one identity, and one person reading the repository learns the key to all of them.
The risk grows with scale. A chart used by many organisations means one known credential, and if the service it belongs to is reachable from the internet, so is the account. The usual defences are: never ship a working default secret, generate a random credential at install time, require the operator to supply one and stop the installation if it is missing, and rotate any credential that has ever been published.
How to test for it
- Find the deployment artefacts a target publishes: Helm charts, Docker Compose files, Terraform modules, installer scripts, example configuration.
- Read the templates and values files for
defaultcalls, hard-coded strings, and example blocks that look like credentials. Decode anything base64-encoded. - Check whether the default is actually used when the value is unset, and whether the resulting account exists on a reachable service.
- Try logging in with the default credential against the service the artefact configures, using a test account or a controlled environment where possible.
- If the login succeeds, record the permissions of the account and the resources it can reach, without modifying data.
A positive result is a successful login with a credential taken word for word from a public artefact, plus evidence of what the account can do. Common false positives are placeholder values that are never used because the deployment requires an override, example files that are not part of the shipped package, and credentials that have already been rotated so the published value no longer works. Confirm the value is live before reporting.
How it is fixed
The standard fix is to remove the fallback secret from the chart and require the operator to provide it. Templates should fail when a required value is absent rather than substituting a default. Where a default is unavoidable, it should be a random value generated per installation, not a fixed string. Any credential that has been published should be rotated, and the account it belonged to should be reviewed for the permissions it held. Publishing a chart should include a check that no secret-like values are present.
Where to look
This bug class hides where convenience meets distribution: public chart repositories, container images with baked-in configuration, quick-start guides, and CI configuration that references example secrets. Signals include a project that publishes deployment manifests alongside its source, templates that use default with credential-like strings, and documentation that shows a login with a fixed username. To make a report land, show the artefact, the exact value, a successful authentication, and the privileges obtained, and keep the proof minimal so the program can verify it quickly.
Glossary
- Kubernetes: a system for running and managing software across many servers.
- Helm: a tool that packages software for Kubernetes.
- Chart: a Helm package, a folder of files describing what to install and how to configure it.
- Values file: the settings file inside a chart, holding names, sizes, addresses and sometimes credentials.
- Matrix: an open standard for secure, decentralised, real-time communication, with open-source implementations.
- Bot: an automated account that logs in like a person and performs tasks.
- Base64: an encoding that rewrites data using letters, digits and symbols; easily reversed, not encryption.
- Template: a file with placeholders that a tool fills in at install time.
- Default value: a fallback used when the person installing supplies nothing.
- Default credentials: a fixed username and password shipped with software, shared by every installation that does not change them.
- Secret exposure: a bug where a password, key or token becomes readable by people who should not have it.
- Rotate: replace a credential with a new one so the old value stops working.
- False positive: a finding that looks like a bug but is not exploitable in practice.
- Bounty: a payment a program makes for a valid security report.