December 3, 2026
Lost in Hex Translation: How One Encoded Letter Bypassed Registration Restrictions on inDrive
When the firewall blocks action=register, and WordPress happily serves action=%72egister.
By wadaa
2 min read
Disclaimer: This write-up is shared for educational and defensive purposes following responsible vulnerability disclosure through inDrive's bug bounty program on HackerOne.
Picture this: you're testing a WordPress-based platform where public self-registration is locked down tight. You try hitting the classic registration endpoint, and the server slams the door right in your face with a crisp 403 Forbidden.
Fair enough. Door locked. Time to move on, right?
Not quite. Sometimes the security rule is standing guard over the exact string register—while the application behind it speaks fluent URL hex encoding and reads %72egister as the exact same word.
Here is how a single hex-encoded character (%72) turned a 403 Forbidden into a 200 OK and allowed unauthorized account creation on domain.indrive.com.
Recon & The Locked Front Door
While exploring domain.indrive.com—a platform built on WordPress—I checked whether standard WordPress user registration was exposed.
Sending a request to the default registration action returned a block as expected:
HTTP
GET /wp-login.php?action=register HTTP/1.1
Host: domain.indrive.comGET /wp-login.php?action=register HTTP/1.1
Host: domain.indrive.comResponse: 403 Forbidden
At first glance, public self-registration via wp-login.php looked properly restricted by a WAF rule, reverse proxy filter, or server-level access rule matching action=register.
Testing the Normalization Gap (%72 Instead of r)
Whenever a filter blocks a specific query parameter value like action=register, the immediate question is: Does the security check inspect the raw query string before URL decoding, while PHP/WordPress decodes it afterward?
In ASCII hex encoding, the lowercase letter r is 0x72 (%72). So instead of sending register, I swapped just the first letter to %72egister:
HTTP
GET /wp-login.php?action=%72egister HTTP/1.1
Host: domain.indrive.comGET /wp-login.php?action=%72egister HTTP/1.1
Host: domain.indrive.comResponse: 200 OK
Just like that, the 403 Forbidden vanished, and the full WordPress registration form loaded cleanly.
Quick cURL Proof of Concept
Bash
# 1. Blocked request (returns 403 Forbidden)
curl -i "https://domain.indrive.com/wp-login.php?action=register"
# 2. Bypassed request (returns 200 OK with registration form)
curl -i "https://domain.indrive.com/wp-login.php?action=%72egister"# 1. Blocked request (returns 403 Forbidden)
curl -i "https://domain.indrive.com/wp-login.php?action=register"
# 2. Bypassed request (returns 200 OK with registration form)
curl -i "https://domain.indrive.com/wp-login.php?action=%72egister"Completing the Flow: From Bypass to Dashboard Access
Loading a form is one thing; actually registering an account is what proves real impact.
- I filled out the registration form with a Username, Email, and completed the reCAPTCHA.
- During submission, I kept
action=%72egisterin thePOSTrequest so the server wouldn't reject the submission at the perimeter - WordPress processed the registration normally, created the user account, and sent out a confirmation email.
- After verifying the email and logging in, I had full authenticated access to the user dashboard endpoints:
/dashboard/enrolled-courses//dashboard/settings/
Why This Matters (Impact)
Even though this falls under Improper Authorization (CWE-285) with a Medium severity profile, the business and security implications were clear:
- Unauthorized Account Creation: Anyone could self-register on a platform where direct registration through
wp-login.phpwas intentionally disabled. - Bypassing Onboarding Validation: Compared to the official
/registration/flow, the default WordPress registration handler bypassed extra onboarding checks—such as required phone numbers or birth dates. - Spam & Abuse Risk: Because
domain.indrive.comsupports programs, unauthenticated account creation opens the door to fake accounts and platform spam.
Root Cause & How to Fix It
This bug is a textbook example of a canonicalization mismatch between a perimeter rule and an application backend:
- The perimeter/WAF rule checked the raw query string for the literal substring
action=register. - PHP / WordPress automatically URL-decoded
$_GET['action']from%72egisterintoregisterbefore routing the request to the registration handler.
How to Properly Lock It Down
- Disable Registration at the Application Layer: In WordPress, never rely solely on a WAF or web server rule to block
action=register. Disable "Anyone can register" (users_can_register = 0) directly in WordPress settings sowp-login.phprejects registration requests regardless of how parameters are encoded. - Normalize Before Filtering: Any WAF or reverse-proxy rule inspecting query parameters should URL-decode and canonicalize inputs before matching patterns.
- Restrict
wp-login.phpActions Explicitly: Enforce an allowlist of permittedactionvalues after decoding rather than blocking single literal strings.
Key Takeaway
Blocking action=register at the door while leaving registration enabled inside WordPress is like locking the screen door and leaving the front door wide open. Always enforce authorization in the application itself—and remember that %72 is still an r once PHP reads it.