/

/

Header Reflection in Invalid URLs

Header Reflection in Invalid URLs

Adds a random header to a request for a non-existent page and checks if it is reflected in the response.

Security Misconfiguration (SM)

"By adding a random header to a request for a non-existent page, we check if the response is reflecting all headers, including http-only cookies. If (when) an XSS is found on the domain, this page can be used to fetch all cookies for an administrator and take over their session on the site."

"By adding a random header to a request for a non-existent page, we check if the response is reflecting all headers, including http-only cookies. If (when) an XSS is found on the domain, this page can be used to fetch all cookies for an administrator and take over their session on the site."

Impact of the vulnerability

Impact of the vulnerability

If XSS is found on the website then hacker can steal http-only cookies and can gain unauthorized access to the system

If XSS is found on the website then hacker can steal http-only cookies and can gain unauthorized access to the system

How this template works

APIs Selection

The API selection filters in this template specify the criteria for selecting the API requests to be executed. It filters the requests based on the response code (between 200 and 299), extracts the URL into a variable, checks if the response payload contains the HTML doctype, and ensures that the method is GET.

Execute request

The execute section of the template defines the type of execution as "single" and includes a list of requests to be executed. In this case, there is only one request defined. It adds a custom header to the request, modifies the URL by appending a slash and then replacing any trailing slashes with '/random-url'.

Validation

The validation section specifies the criteria for validating the response of the executed request. In this template, it checks if the response payload contains the string "akto'". If the response payload contains this string, the validation is considered successful.

Frequently asked questions

What is the purpose of adding a random header to a request for a non-existent page in this test

What is the purpose of adding a random header to a request for a non-existent page in this test

What is the purpose of adding a random header to a request for a non-existent page in this test

How does this test help in identifying security misconfigurations related to header reflection in invalid URLs

How does this test help in identifying security misconfigurations related to header reflection in invalid URLs

How does this test help in identifying security misconfigurations related to header reflection in invalid URLs

What is the impact of finding an XSS vulnerability on the website during this test

What is the impact of finding an XSS vulnerability on the website during this test

What is the impact of finding an XSS vulnerability on the website during this test

What are the selection filters used in this test to determine which requests to include

What are the selection filters used in this test to determine which requests to include

What are the selection filters used in this test to determine which requests to include

How is the URL modified in this test

How is the URL modified in this test

How is the URL modified in this test

What is the validation criteria for a successful test execution

What is the validation criteria for a successful test execution

What is 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

"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

"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

"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.