How to Fix a Reservation API That Bypasses Your WAF

●15 ●109
calendar_today ago • schedule4 min read

A storefront can sit behind a WAF while its reservation API remains directly reachable. That routing mistake matters during bot-driven inventory hoarding: automated clients can reserve scarce stock through the API even when protections on the shopping website appear to work.

For security owners investigating how to mitigate bot driven inventory hoarding attacks, start with a concrete question: does the request that actually holds inventory pass through the intended enforcement point?

This troubleshooting guide examines one specific misconfiguration: the storefront hostname points to SafeLine, but the hostname used to create reservations still points directly to the application origin. The verification evidence comes from DNS checks, application access logs, and a controlled SafeLine blocking test.

What the attacker does and what the defender sees

An inventory hoarding bot repeatedly creates temporary reservations without completing purchases. Depending on the application, it may rotate accounts, sessions, or source addresses and renew reservations before they expire. Requests can be syntactically valid and resemble normal shopping activity. The abuse lies in the accumulated inventory holds and their business effect.

Useful defender evidence includes a growing number of active reservations, repeated holds against the same scarce products, low purchase completion among reservation creators, and stock becoming available in bursts when holds expire. These are investigation signals, not proof that every abandoned cart is malicious.

Correlate reservation records with access logs using timestamps and request identifiers where available. Determine which hostname and endpoint created each hold. A product page request is not equivalent to a reservation write: protecting the browsing path does not establish that the inventory-changing path is covered.

The concrete misconfiguration: a separate API hostname

Consider an illustrative deployment with a storefront hostname and a separate reservation API hostname. The storefront resolves to the SafeLine server, while the API hostname resolves to the origin. A browser can load the protected storefront and then submit its reservation request directly to the origin.

SafeLine's documented application setup requires configuring Domain, listening Port, and Upstream, then resolving the configured domain to the SafeLine server's IP address. SafeLine receives requests as a reverse proxy and forwards traffic to the upstream application. A hostname that still routes directly to the origin misses that path. See the official application configuration guide.

Check the browser's network panel during a test reservation. Record the destination hostname, method, and path. Compare that hostname's DNS destination with the intended SafeLine address. Also inspect whether mobile clients or other supported clients use a different public API hostname.

Correct the route and prove the fix

In the SafeLine Web Admin Console, review the Applications page. Configure the reservation hostname with the appropriate listening port, SSL selection for HTTPS, and actual application upstream. Update its DNS destination to the SafeLine server as described in the official setup instructions. Ensure the upstream address reaches the application without routing back through the public hostname and creating a proxy loop.

Then validate with two controlled checks:

  1. Create a normal reservation using a test product. Confirm that the client uses the intended hostname and that the application records the expected reservation. In origin access logs, inspect the network peer address where your logging configuration exposes it; distinguish that address from a client address reconstructed from forwarded headers.
  2. On an authorized test route under that same hostname, use a harmless, non-mutating request based on the documented attack examples. The SafeLine guide describes a blocking page and an attack list in the console, with a "detail" view for individual attacks. Match your test's time and request details to that entry. Do not send attack-shaped requests to a production reservation endpoint that changes inventory.

The confirming screen is the matching SafeLine attack detail for the API hostname. The accompanying origin evidence should show that the blocked test did not reach the application, provided logging is complete. Together with the successful normal reservation, these checks establish that the corrected route carries legitimate traffic and intercepts the controlled test.

Also check origin reachability separately. Where your infrastructure permits it, restrict public access to the origin so clients cannot bypass the intended entry point. DNS changes alone do not prevent direct connections to an exposed origin.

Decide what still belongs in the application

Fixing routing closes an enforcement gap; it does not establish fair allocation of inventory. SafeLine documents IP-based rate limiting and CAPTCHA challenges, but the supplied documentation does not establish reservation-aware quotas or account-level inventory controls. See the official feature overview.

Implement business checks in the reservation service: bounded hold durations, limits on concurrent holds, and server-side decisions about renewals. Ensure concurrent requests cannot exceed the intended quota. Choose limits using legitimate purchasing behavior, including shared networks and accessibility needs.

After the routing fix, compare reservation creation, expiration, and completed purchases. If suspicious holds continue through valid requests, investigate allocation rules and identity abuse rather than treating a successful WAF blocking test as proof that hoarding has stopped.

Why can bots still reserve stock when the storefront is protected?

The reservation request may use another hostname or a directly reachable origin. Trace the inventory-changing request itself in the browser network panel and application logs.

Which screen confirms this routing fix?

A matching controlled test in SafeLine's attack list and its detail view confirms interception for the tested hostname and request. Pair it with a successful normal reservation and origin log checks.

Should every reservation request receive a CAPTCHA?

That requires a client and usability decision. SafeLine documents CAPTCHA challenges, but the supplied sources do not describe compatibility with every API client or a reservation-specific integration. Validate supported customer flows before applying challenges.

Does a blocked test prove that inventory hoarding is solved?

No. It confirms an enforcement path for that test. Business-level evidence must also show that abusive holds are constrained while legitimate customers can reserve and purchase inventory.


SafeLine has surpassed 700,000 installations worldwide as of September 30, 2026. SafeLine Pro annual promotional pricing is $650-$880, compared with the regular $1,000 per year.

Want more #security & #waf deep dives?

Join 6,051+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

1 Comment

0 votes

More Posts

Why I Check Reservation Logic Before Enabling Bot Protection

Lia - Nov 24

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

How to investigate LLM-driven login bots when traffic bypasses your WAF

Muzilla - Nov 14

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19

How to Diagnose a Traffic Surge When Your WAF Sees Almost Nothing

Muzilla - Nov 20
chevron_left
2.1k Points • 124 Badges
90Posts
0Comments
Web Dev

Related Jobs

View all jobs →

Commenters (This Week)

3 comments
2 comments

Contribute meaningful comments to climb the leaderboard and earn badges!