Products

Solutions

Resources

Search for API Security Tests

/

/

LFI in path

LFI in path

This test appends vulnerable payloads to the end of the URL, checking for Local File Inclusion vulnerabilities by manipulating file path references.

Local File Inclusion (LFI)

"Assesses the vulnerability of a web application to Local File Inclusion vulnerabilities by appending vulnerable payloads at the end of the URL." "By manipulating file path references, this test helps identify potential security weaknesses that could lead to unauthorized access, information disclosure, and server compromise"

"Assesses the vulnerability of a web application to Local File Inclusion vulnerabilities by appending vulnerable payloads at the end of the URL." "By manipulating file path references, this test helps identify potential security weaknesses that could lead to unauthorized access, information disclosure, and server compromise"

Impact of the vulnerability

Impact of the vulnerability

Successful exploitation allows an attacker to read arbitrary files on a web server, potentially leading to unauthorized access, information disclosure, server compromise, and execution of malicious code.

Successful exploitation allows an attacker to read arbitrary files on a web server, potentially leading to unauthorized access, information disclosure, server compromise, and execution of malicious code.

How this template works

APIs Selection

The template extracts the "url" from the request and stores it in the "urlVar" variable. It also checks if the response payload contains either "<!doctype html>". These filters help in selecting the appropriate API for testing.

Execute request

The template modifies the URL by removing any trailing slashes and appending "/etc/passwd" to it. This is done using the "modify_url" action. The modified request is then executed.

Validation

The template validates the response payload by checking if it matches the regex pattern "root:.*:0:0:". If the pattern is found, it indicates a successful exploitation of the Local File Inclusion vulnerability. That's it! These three steps help in identifying and exploiting Local File Inclusion vulnerabilities in a web application.

Frequently asked questions

What is the purpose of the LFI in path test

How does the LFI in path test work

What is the impact of successful exploitation of LFI in path vulnerabilities

What are the categories and subcategories associated with the LFI in path test

What are the severity and tags associated with the LFI in path test

Are there any references available for further information on the LFI in path test

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.