Skip to content
Business logic Write-up Intermediate

How a Newline Injection in Folder Names Broke Access Revocation: 750$ Bug

The backend failed to validate folder names, so a collaborator could create a folder whose name began with a newline character. This broke the owner's ability to revoke the collaborator's edit rights or delete the folder, letting the attacker keep elevated access.

a13h1 Follow

Published on medium.com

Sometimes the smallest input validation issues can snowball into serious business logic flaws. This bug is a great example — a simple newline character (%0a) in a folder name was enough to block owners from revoking access rights, leaving attackers stuck with elevated privileges.

Abhi Sharma, 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 did not sanitise or reject control characters such as newlines in folder names, and its path-handling logic then errored during permission revocation.

Impact

The attacker could retain edit rights indefinitely and the owner could not revoke access or delete the malicious folder, though the program rated confidentiality impact as low.

What the attacker needed

Attacker has editor access via Transfer Edit Rights; owner later tries to revoke or delete

How it was found

  1. The owner grants Transfer Edit Rights to a collaborator (the attacker).
  2. The attacker, as an editor, creates a folder whose name starts with a newline character.
  3. The owner tries to revoke the collaborator's rights or delete the folder.
  4. The action fails because of backend errors caused by the malformed folder name, so the attacker keeps access.

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 folder name is just text, but the server uses it when deciding who can do what. If a name contains a special invisible character like a line break, the server's checks can fail. Here, that failure meant the owner could no longer remove the attacker's editing permission.

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.

More by a13h1

View all

8 more disclosed reports, best first.

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.