pentesting, updated

Testing for improper error handling

Check whether error responses reveal more than a generic failure message should.

Goal

Confirm error responses are generic to the user while detail stays in server-side logs.

How to test

Trigger errors deliberately across input types and endpoints:

curl -s "https://example.com/item?id='"                    # malformed input
curl -s "https://example.com/item?id=99999999999999999999" # out-of-range
curl -s https://example.com/api/missing-endpoint           # 404 handling
curl -s https://example.com/ -H "Content-Type: application/json" -d "not json"

What to look for

Database errors, framework version strings, internal file paths, or any detail beyond what a user needs to understand the failure.

References

§ home
~/knubertus/home/
1,1 Top