Products

Solutions

Resources

/

/

Invalid File Input Leaking Sensitive Details Via Verbose Error Message

Invalid File Input Leaking Sensitive Details Via Verbose Error Message

The error response contains information which may help in more sophisticated attacks

Verbose Error Messages (VEM)

"The error response contains information about the database or an inconsistent error message.<br>" "<b>Background:</b> Inconsistencies in error messages can reveal important clues on how a site works, and what information is present under the covers. For example, when a user tries to access a file that does not exist, the error message typically indicates, “file not found”. When accessing a file that the user is not authorized for, it indicates, “access denied”. The user is not supposed to know the file even exists, but such inconsistencies will readily reveal the presence or absence of inaccessible files or the site directory structure. It may also contain informaiton pertaining to which database is being used."

"The error response contains information about the database or an inconsistent error message.<br>" "<b>Background:</b> Inconsistencies in error messages can reveal important clues on how a site works, and what information is present under the covers. For example, when a user tries to access a file that does not exist, the error message typically indicates, “file not found”. When accessing a file that the user is not authorized for, it indicates, “access denied”. The user is not supposed to know the file even exists, but such inconsistencies will readily reveal the presence or absence of inaccessible files or the site directory structure. It may also contain informaiton pertaining to which database is being used."

Impact of the vulnerability

Impact of the vulnerability

This information can be used to facilitate more sophisticated attacks on your application

This information can be used to facilitate more sophisticated attacks on your application

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, the filters include checking the response code to be between 200 and 299, and either the request payload or query parameter containing the word "file".

Execute request

The template specifies a single type of request to be executed. It modifies the body parameter and query parameter by replacing the values with "testInvalidFile".

Validation

The template defines the validation criteria for the response received from the executed request. It checks that the response code is greater than or equal to 400. Additionally, it checks if the response payload contains either the words "SQL", "MYSQL", or "access denied", or if the response payload length is greater than 1000.

Frequently asked questions

What is the purpose of the "INVALID_FILE_INPUT" subcategory in this test

What is the purpose of the "INVALID_FILE_INPUT" subcategory in this test

What is the purpose of the "INVALID_FILE_INPUT" subcategory in this test

How does the "INVALID_FILE_INPUT" vulnerability impact the application

How does the "INVALID_FILE_INPUT" vulnerability impact the application

How does the "INVALID_FILE_INPUT" vulnerability impact the application

What are the potential consequences of inconsistent error messages

What are the potential consequences of inconsistent error messages

What are the potential consequences of inconsistent error messages

How does this test filter requests based on response codes

How does this test filter requests based on response codes

How does this test filter requests based on response codes

How does the test modify the request parameters

How does the test modify the request parameters

How does the test modify the request parameters

What are the validation criteria for this test

What are the validation criteria for this test

What are the validation criteria for this 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.