pentesting, updated

Test number of times a function can be used limits

Check whether a function meant to be used a limited number of times can be called beyond that limit.

Goal

Confirm limited-use functions (free trial activation, a one-time discount, a vote) actually enforce their limit server-side.

How to test

Call the limited function repeatedly and see whether the limit holds:

for i in $(seq 1 10); do
  curl -s https://example.com/api/claim-trial -H "Cookie: session=<your-session>"
done

Also try varying a client-controlled identifier (device ID, a cookie you can clear) if the limit is tied to something other than the account.

What to look for

The action succeeding more times than the stated limit, especially when tied to a client-resettable identifier instead of the account.

References

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