N OT E
Do not assume that the application will respond with “200 OK” if a
requested resource exists, and “404 Not Found” if it does not. Many
applications handle requests for nonexistent resources in a customized way,
often returning a bespoke error message and a 200 response code. Further,
some requests for existent resources may receive a non-200 response. The
following is a rough guide to the likely meaning of the response codes that you
may encounter during a brute-forcing exercise looking for hidden content:
■■
302 Found — If the redirect is to a login page, the resource may be
accessible only by authenticated users. If it is to an error message, this
may disclose a different reason. If it is to another location, the redirect
68
Chapter 4
■
Do'stlaringiz bilan baham: |