A User ID in a URL Is Not Permission to Export Contacts

A User ID in a URL Is Not Permission to Export Contacts

MailBolt
MailBolt™ Team
Author
2026-10-26
Published
1 min read
Reading Time

An export link contains a user ID. Changing that number should never be enough to retrieve another account's contacts, even if the export button itself is hidden from ordinary users.

Check ownership on the server

The authenticated session and current authorization rules should determine which account's data can be exported. Treat URL and form identifiers as requested targets, then verify that the requester is allowed to access them.

Apply the same rule to downloads generated earlier. A private export can become public if its filename is predictable and the web server serves it without an authorization check.

Test with fictional accounts

Create two isolated test users and attempt to request each other's export through every supported route. Include a direct URL, a modified form field and an old download link. Verify the denial without exposing real customer data.

Keep exports short-lived where appropriate and limit who can generate them. Record enough audit information to investigate an export without logging the contacts or secret download token in an unrestricted place.

A hidden interface control is not a security boundary. The export and the resulting download both need the correct access check.

MailBolt
Written by
MailBolt™ Team