Credentials leaked via Github
Hardcoded credentials were committed to a public GitHub repository, and an attacker could use them to log in to the Acronis cloud portal and view sensitive information.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 7 days
- Paid in 5 days
- Disclosed after 3.6 years
Hi Team,
I have found the credentials on Github which leads to direct access to the portal.
Steps to reproduce:
Go to the below link: https://github.com/MasterHimself/Test/blob/2faa2990fe2d63ceb8b1577df792e0edc5d0bdba/Selenium/Behave/Examples/Steps/Steps.py
Observed the hardcoded credentials. So, I visit the URL https://cloud.acronis.com/login & use the mentioned credentials.
driver.find_element_by_xpath("//input[@name='login']").█████ driver.find_element_by_xpath("//input[@name='password']").█████
Got the direct access and able to view the sensitive information.
Impact
Hardcoded passwords are particularly dangerous because they are easy targets for password guessing exploits, allowing hackers and malware to hijack firmware, devices (such as health monitoring equipment), systems, and software.
Looking forward to your response.
regards Alisha Sheikh
What the report shows
The target is Acronis, scoped to *.acronis.com, and the feature in question is the login portal at https://cloud.acronis.com/login. The researcher, sheikh_chilli, reported that credentials committed to a public GitHub repository gave direct access to that portal. The weakness was classified as use of hard-coded credentials, the severity as medium, and the report was disclosed on 26 August 2024 with a bounty of 50.00 USD.
The reproduction is short. The researcher points at a file in a public repository:
https://github.com/MasterHimself/Test/blob/[redacted]/Selenium/Behave/Examples/Steps/Steps.py
Inside that file, the hardcoded credentials were visible. The researcher then visited the login page and used them. The report includes the two lines from the file that show how the credentials are entered, with the values redacted here:
driver.find_element_by_xpath("//input[@name='login']").█████
driver.find_element_by_xpath("//input[@name='password']").█████
With those credentials the researcher reports getting direct access and being able to view sensitive information. The report does not name the account, the data viewed, or the exact privilege level, and it does not describe any remediation. The impact section is a general statement about hardcoded passwords being easy targets for password guessing exploits, allowing attackers and malware to hijack firmware, devices such as health monitoring equipment, systems and software.
Root cause
The credentials were committed to a source file in a public repository, in a Selenium/Behave step definition. The file is a Selenium/Behave step definition, which is exactly the kind of place where a developer hardcodes a login so a test can run unattended. Once pushed to a public repository, the credentials are readable by anyone, and the commit hash in the URL means the value stays retrievable even after a later commit removes it.
Impact
As reported, the credentials gave direct access to the portal and exposed sensitive information. The report does not quantify what that information was or whether the account had administrative rights, so the practical ceiling of the access is not established in the text. The general risk it describes is that hardcoded passwords are easy targets for password guessing exploits.
How this kind of bug works
Hardcoded credentials are a secrets-management failure rather than a flaw in the application logic. A developer needs a working login for a test, a script or a deployment, and writes the username and password directly into the code so it runs without manual input. The code is then committed, and if the repository is public, or later becomes public, the secret is exposed. Version control makes this worse: the secret lives in history, so deleting the line in a new commit does not remove it from earlier revisions, forks, mirrors or search engine caches.
Defences are layered: keep secrets out of source with environment variables or a secrets manager, scan repositories and history for credential patterns, rotate anything that leaks, scope test accounts to minimal privileges, and require MFA so a password alone is not enough.
How to test for it
This class of bug is found by searching public code, not by attacking the application directly.
- Identify the organisation's GitHub organisations, user accounts and repository naming patterns, including personal forks and test or demo repositories that may not be in the main organisation.
- Search code and commit history for the target's domains and product names alongside keywords such as
password,passwd,login,api_key,tokenandsecret. Search forks and older commits too, since the current default branch may already be cleaned. - Look at test automation, CI configuration, sample scripts and documentation, which are the usual homes for working credentials.
- When you find a candidate, test it against the login or API endpoint it appears to belong to, using only your own account context and stopping at the first sign of access.
- A positive result is a successful authentication to a real service with the discovered credential, ideally showing that the account belongs to the target and holds data or privileges a normal user should not reach.
Common false positives: placeholder values such as changeme or example, credentials for a local or mock service, expired or already rotated secrets, and test accounts with no access to anything meaningful. Confirm the credential actually authenticates before reporting, and never test beyond proving access.
How it is fixed
Replace hardcoded values with environment variables or a secrets manager, restrict test accounts to the minimum privilege they need, and add MFA to accounts that can reach sensitive data.
Hunting notes
This bug class hides in test suites, CI pipelines, deployment scripts, notebooks, infrastructure-as-code and documentation examples. Recon signals include public repositories tied to the target's engineers, forks of internal-looking projects, and code that references the target's login or API hosts. To make a report land, show the exact file and commit, prove authentication with the credential, and describe the data or privilege reached, while redacting the secret itself in the write-up.
What happened, in plain words
Acronis runs a cloud service, and the part of it involved here is the login page at https://cloud.acronis.com/login. That page is the front door: you type a username and password, and if they are correct you get into your account and see whatever is inside it.
The researcher, sheikh_chilli, found a working username and password for that front door sitting in a file on GitHub, a public website where developers store and share code. Anyone on the internet could read that file. The researcher read it, took the credentials, typed them into the Acronis login page, and got in. The report says this gave direct access and allowed viewing sensitive information. It does not say which account was used, what data was seen, or how much power the account had.
The weakness was classified as use of hard-coded credentials, the severity as medium, and the report was disclosed on 26 August 2024 with a bounty of 50.00 USD.
The steps, one by one
- The researcher went to a file in a public GitHub repository:
https://github.com/MasterHimself/Test/blob/[redacted]/Selenium/Behave/Examples/Steps/Steps.py
This is a web address for one file inside a code project. The long string of letters and numbers in the middle (2faa2990...) is a commit hash: a unique label for one saved version of the project. It matters because it points at that exact version, so the file can still be read even if someone later edits or deletes it. The path shows the file lives in a folder called Selenium/Behave/Examples/Steps.
-
In that file, the credentials were visible in plain text. They were not hidden, encrypted or stored somewhere separate; they were written straight into the code.
-
The researcher then visited
https://cloud.acronis.com/loginand entered those credentials. The report shows the two lines from the file that fill in the login form, with the values redacted here:
driver.find_element_by_xpath("//input[@name='login']").█████
driver.find_element_by_xpath("//input[@name='password']").█████
These are instructions for a browser automation tool. driver is the object that controls the browser. find_element_by_xpath means "find the element on the page that matches this pattern". //input[@name='login'] means "the input box whose name is login", and //input[@name='password'] means the same for the password box. The part after the dot, redacted here, is where the actual value gets typed in. The lines show the login form being filled in with the credentials.
- With those credentials, the researcher reports getting direct access and being able to view sensitive information.
Why this matters
A password written into code is only as private as the code. If the code is public, the password is public. The report's impact section makes a general point: hardcoded passwords are easy targets for password guessing exploits, and can let attackers and malware hijack firmware, devices such as health monitoring equipment, systems and software.
In general, how this kind of bug works
Hardcoded credentials are not a flaw in how the website checks passwords. They are a mistake in how the password was stored by the people who built the site. A developer needs a working login so an automated test can run without a human typing anything. The quickest way is to write the username and password directly into the test file. That works, the test passes, and the file gets saved to GitHub.
Version control, the system that keeps every saved version of a project, makes this worse. Deleting the line in a new version does not remove it from the old versions. Anyone who knows the commit hash, or who looks through the project's history, forks (copies of the project made by other people) or search engine caches, can still find it.
A second factor is an extra check beyond the password, such as a code sent to a phone, so a stolen password alone is not enough to get in.
How people find this
This kind of bug is found by searching public code, not by attacking the website.
- Find the organisation's GitHub accounts and the naming patterns of its repositories, including personal forks and test or demo projects that sit outside the main organisation.
- Search code and commit history for the target's domains and product names next to words such as
password,passwd,login,api_key,tokenandsecret. Check forks and older commits too, because the current version may already be cleaned. - Look at test automation, build configuration, sample scripts and documentation, which are the usual homes for working credentials.
- When you find a candidate, test it against the login or API endpoint it seems to belong to, using only your own account context, and stop at the first sign of access.
- A positive result is a successful login to a real service with the discovered credential, ideally showing that the account belongs to the target and holds data or privileges a normal user should not reach.
Common false positives are placeholder values such as changeme or example, credentials for a local or fake service, expired or already changed secrets, and test accounts with no access to anything meaningful. Confirm the credential actually logs in before reporting, and never test beyond proving access.
How it is fixed
Replace hardcoded values with environment variables or a secrets manager, restrict test accounts to the minimum privilege they need, and add a second factor to accounts that can reach sensitive data.
Where this bug hides
This bug class hides in test suites, build pipelines, deployment scripts, notebooks, infrastructure-as-code and documentation examples. Signals worth watching are public repositories tied to the target's engineers, forks of internal-looking projects, and code that references the target's login or API hosts. To make a report land, show the exact file and commit, prove login with the credential, and describe the data or privilege reached, while redacting the secret itself in the write-up.
Glossary
- Credentials: a username and password (or similar pair) used to prove who you are when logging in.
- Hardcoded credentials: a username and password written directly into source code instead of being stored separately.
- Repository: a project folder tracked by a version control system, often hosted publicly on a site such as GitHub.
- Commit: one saved version of a project, identified by a unique hash.
- Commit hash: the long string of letters and numbers that labels a specific commit, as seen in the file URL.
- Version control: a system that records every saved version of a project so old versions can be retrieved.
- Fork: a personal copy of someone else's repository, which keeps its own history.
- Selenium: a tool that lets code control a web browser, commonly used for automated tests.
- Behave: a framework for writing tests in plain-language steps, often used with Selenium.
- Step definition: the code that carries out one plain-language test step, such as filling in a login form.
- XPath: a pattern language for locating elements on a web page, for example an input box by its name.
- Driver: the object in browser automation code that sends commands to the browser.
- Login portal: the web page where users sign in to a service.
- Sensitive information: data that should only be seen by authorised people.
- Account takeover: an attacker gaining control of someone else's account by obtaining their credentials.
- Credential reuse: using the same username and password on more than one service, so one leak exposes several accounts.
- Second factor / MFA: an extra check beyond the password, such as a code on a phone, so a stolen password alone is not enough.
- Secrets manager: a dedicated service for storing passwords and keys securely, separate from code.
- Environment variable: a value kept outside the code and supplied to a program when it runs, often used to hold secrets.
- Secret scanning: automatically searching code and its history for patterns that look like passwords, keys or tokens.
- Pre-commit hook: an automatic check that runs before code is saved, to block secrets from being committed.
- False positive: a finding that looks like a problem but is not one, such as a placeholder password.
- Severity: a rating of how serious a bug is, here medium.
- Bounty: a payment made to a researcher for a valid report.