Products

Solutions

Resources

/

/

Git Credentials Disclosure

Git Credentials Disclosure

Searches for the pattern and log file on passed URLs.

Security Misconfiguration (SM)

"Git Credentials Disclosure refers to the vulnerability where the presence of Git credentials and log files is checked on provided URLs. The .git-credentials file contains sensitive information, including HTTPS URLs and authentication credentials. Promptly addressing this vulnerability is crucial to prevent unauthorized access, protect the integrity of source code, and safeguard sensitive information from being exposed."

"Git Credentials Disclosure refers to the vulnerability where the presence of Git credentials and log files is checked on provided URLs. The .git-credentials file contains sensitive information, including HTTPS URLs and authentication credentials. Promptly addressing this vulnerability is crucial to prevent unauthorized access, protect the integrity of source code, and safeguard sensitive information from being exposed."

Impact of the vulnerability

Impact of the vulnerability

Disclosing Git credentials exposes sensitive information, including HTTPS URLs and authentication credentials, enabling unauthorized access to Git repositories and potential code manipulation.

Disclosing Git credentials exposes sensitive information, including HTTPS URLs and authentication credentials, enabling unauthorized access to Git repositories and potential code manipulation.

How this template works

APIs Selection

The template uses API selection filters to specify the criteria for selecting the API requests to be executed. In this case, it filters the requests based on the response code, ensuring that it is between 200 and 299, and extracts the URL from the response using the "urlVar" variable.

Execute request

The template specifies a single request to be executed. It modifies the URL by appending "/.git-credentials" to the extracted URL. This request is sent to the modified URL to check for the presence of the .git-credentials file.

Validation

The template defines validation criteria to verify the response of the executed request. It checks that the response code is equal to 200, the response payload contains both "https://" and "@github.com", and the response headers do not contain the value "text/html". These validations ensure that the .git-credentials file is present and contains the expected sensitive information.

Frequently asked questions

What is the purpose of the Git Credentials Disclosure test

What is the purpose of the Git Credentials Disclosure test

What is the purpose of the Git Credentials Disclosure test

What are the potential impacts of disclosing Git credentials

What are the potential impacts of disclosing Git credentials

What are the potential impacts of disclosing Git credentials

What category and subcategory does the Git Credentials Disclosure vulnerability fall under

What category and subcategory does the Git Credentials Disclosure vulnerability fall under

What category and subcategory does the Git Credentials Disclosure vulnerability fall under

What are the validation criteria for a successful test execution

What are the validation criteria for a successful test execution

What are the validation criteria for a successful test execution

What are the API selection filters used in this test

What are the API selection filters used in this test

What are the API selection filters used in this test

How does the test modify the URL for the request

How does the test modify the URL for the request

How does the test modify the URL for the request

Loved by security teams!

Loved by security teams!

Product Hunt Badge

"We are absolutely thrilled with the testing feature of Akto. We have used it on our graphQL endpoints and it performs flawlessly identifying common API security issues. It's truly a game-changer and we highly recommend Akto to anyone looking to effortlessly secure their API endpoints. With a user-friendly interface, it's the perfect solution for anyone looking to embrace custom rules with context to reduce false positives."

Loom Company logo

Security team,

Loom

"We are absolutely thrilled with the testing feature of Akto. We have used it on our graphQL endpoints and it performs flawlessly identifying common API security issues. It's truly a game-changer and we highly recommend Akto to anyone looking to effortlessly secure their API endpoints. With a user-friendly interface, it's the perfect solution for anyone looking to embrace custom rules with context to reduce false positives."

Loom Company logo

Security team,

Loom

"The text editor in Akto is absolutely remarkable. Its user-friendly YAML format strikes the perfect balance between simplicity and power. With intuitive features like 'API selection filter', 'Execute', Validate' creating test rules becomes incredibly easy. Akto's test editor is a game-changer, enabling seamless creation of highly personalized and effective tests that could meet the needs of any modern day organization. "

Rippling Company logo

Security team,

Rippling

Suggest API security tests

Suggest API security tests

We're actively building the test library. Suggest a test! If we like your suggestion, you will see it in the library in few days.

We're actively building the test library. Suggest a test! If we like your suggestion, you will see it in the library in few days.