We Hacked Larksuite For 1 month and Here is what we found
The report describes multiple vulnerabilities in Larksuite, including access control flaws that let low-privileged users view and modify other users' folders, escalate privileges, and access private files and helpdesk tickets. An attacker could exploit these to read, edit, or delete sensitive data across the organisation.
Almost a year back in March 2020 shuffling our private invites stock inorder to crash into a programme worthy of our time and excitement. In a while we stumbled upon a programme by name of Lark Technologies.
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 missing or improper authorisation checks on several API endpoints, allowing users to perform actions beyond their assigned permissions.
Impact
An attacker with low privileges could view, edit, and delete files and folders of other users, escalate privileges, and access private helpdesk tickets, potentially leading to data breaches and unauthorised actions.
What the attacker needed
A Larksuite account with low privileges; knowledge of victim's user ID or file tokens
How it was found
- As a super admin, invite a user with only 'view company info' permission.
- Send a GET request to /suite/admin/space_manage/user_folder with the victim's userID to retrieve their folder tokens.
- Use the leaked parentToken in another GET request to list files and obtain file tokens.
- Use the file tokens to download files via the download endpoint.
- Send a POST request to /suite/admin/space_manage/user_folder with the leaked token to create a new folder in the victim's directory.
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.
This report lists several security holes in a workplace collaboration tool. The main problem was that the software did not properly check whether a user was allowed to perform certain actions, so a user with low permissions could see or change things belonging to others, like files or admin settings.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.