February 2018
Beginner to intermediate
426 pages
10h 25m
English
Web services, especially REST services, often reference database elements using their identifiers in the URL. If these identifiers are sequential and authorization checks are not properly done, it may be possible to enumerate all of the elements just by increasing or decreasing the identifier.
For example, let's say that we log in to a banking application and then call to the API to request our personal profile. This request looks something like the following:
https://bankingexample.com/client/234752879
The information is returned in JSON format, which is formatted and displayed on the client's browser:
{ "id": "234752879", "client_name": "John", "client_surname": "Doe", "accounts": [{"acc_number":"123456789","balance":1000}, ...Read now
Unlock full access