Skip to content
Business logic Write-up Intermediate

From Broken Invites to Locking Any Account on the Platform

The application accepted invalid locale values when updating company settings and employee profiles, which later caused invite and login flows to fail. An attacker could lock any existing account, including owners and users from other organisations, by inviting their email and setting a malformed locale without victim interaction.

medium.com

Published on medium.com

In this write-up, I want to share an interesting logic flaw I found during testing on a private bug bounty program.

Mohab mohamed, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the backend failed to validate locale values on update and then reused the stored value in critical flows such as login and invitations, causing those flows to fail.

Impact

An attacker could persistently lock any existing account, including organisation owners and users from other tenants, without any victim interaction, preventing login and normal use.

What the attacker needed

Permission to edit company details; ability to invite users to an organisation; victim's email address

The fix

The issue was fixed by the program, likely by adding proper validation of locale values on update and before use in critical flows.

How it was found

  1. Intercept the request to update company details and change the locale to an invalid value.
  2. Observe that the server accepts and saves the invalid locale, breaking invite functionality.
  3. Invite an existing user's email address into the organisation.
  4. Intercept the request to update the invited user's profile and add a malformed locale value.
  5. Observe that the server accepts the malformed locale and saves it to the targeted account.
  6. The victim is locked out on their next login attempt.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A locale is a setting that tells the app which language and region format to use, like 'en-gb' for British English. The app saved a broken locale value without checking it, and later parts of the app crashed when they tried to use that broken value. By changing the locale on someone else's account, an attacker could stop them from logging in.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.