Products

Solutions

Resources

/

/

Git Config Disclosure

Git Config Disclosure

Searches for the pattern /.git/config and log file on passed URLs.

Security Misconfiguration (SM)

"Git Config Disclosure refers to the vulnerability where the existence of the /.git/config file and log files is checked on provided URLs. The Git config file contains sensitive information such as repository configurations, URLs, and credentials, while log files may contain valuable data. Promptly addressing this vulnerability is crucial to prevent unauthorized access, protect source code integrity, and safeguard sensitive information."

"Git Config Disclosure refers to the vulnerability where the existence of the /.git/config file and log files is checked on provided URLs. The Git config file contains sensitive information such as repository configurations, URLs, and credentials, while log files may contain valuable data. Promptly addressing this vulnerability is crucial to prevent unauthorized access, protect source code integrity, and safeguard sensitive information."

Impact of the vulnerability

Impact of the vulnerability

Disclosing the Git config file and log files exposes sensitive information, allowing attackers to gain unauthorized access, manipulate code, and potentially compromise the integrity of the source code.

Disclosing the Git config file and log files exposes sensitive information, allowing attackers to gain unauthorized access, manipulate code, and potentially compromise the integrity of the source code.

How this template works

APIs Selection

The API selection filters in this template specify the criteria for selecting the URLs to be tested. In this case, the filters include the response code range (between 200 and 299) and the extraction of the URL from the response using the "urlVar" variable.

Execute request

The execute section defines the type of request to be made and the specific request(s) to be executed. In this template, a single request is made to modify the URL by appending "/.git/config" to it. The "${urlVar}" variable is used to dynamically insert the extracted URL from the API selection filters.

Validation

The validation section specifies the conditions that the response should meet to be considered valid. In this template, the response code is expected to be 200, and the response payload should contain the string "[core]". Additionally, the response payload should not contain any of the listed HTML tags, indicating that the Git config file is not exposed.

Frequently asked questions

What is the purpose of this test

What is the purpose of this test

What is the purpose of this test

What is the impact of disclosing the Git config file and log files

What is the impact of disclosing the Git config file and log files

What is the impact of disclosing the Git config file and log files

What category and subcategory does this vulnerability fall under

What category and subcategory does this vulnerability fall under

What category and subcategory does this vulnerability fall under

What are the selection filters used for API requests in this test

What are the selection filters used for API requests in this test

What are the selection filters used for API requests in this test

What modification is made to the URL in the execute phase of this test

What modification is made to the URL in the execute phase of this test

What modification is made to the URL in the execute phase of this test

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

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.