Skip to content
IDOR Write-up Beginner

How i was able to steal private files of any user on Larksuite

A file token used in the Larksuite footer feature could be swapped for another user's private file token, and the server would return the private file without checking ownership. An attacker who knew or guessed a private file token could download another user's private file.

Imran Nissar Follow

Published on web.archive.org

Imran Nissar

Imran Nissar, on web.archive.org

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 server used the client-supplied file token to fetch the file without verifying that the requesting user owned that file.

Impact

An attacker could potentially download any user's private file if they knew its file token.

What the attacker needed

A Larksuite account; knowledge of a private file token

How it was found

  1. Upload an image in the footer feature and note the file token returned.
  2. Send the POST request that saves the footer changes, containing that file token.
  3. Replace the token with another user's private file token and resend the request.
  4. A broken image appears; click view image to download the private file.

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.

When you upload a file, the service gives it a unique label called a token. The bug was that the server trusted whatever token you sent back and did not check that the file belonged to you, so changing the token let you fetch someone else's private file.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by Imran Nissar

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.