HexBrain

Nextcloud · Report #819807

Missing ownership check on remote wipe endpoint

Validstatus
highseverity
$500bounty
141upvotes
19 Apr 2020disclosed

How it was found

On settings/user/security

You can mark a device for wipe out that does not belong to you.

Steps:

  1. Create 2 accounts one for the hacker and one for the victim
  2. On both accounts add devices with different names
  3. On the hacker account, while intercepting with burpsuite, select the option to wipe out a device
  4. Forward with burpsuite and in the url that looks like settings/personal/authtokens/wipe/{data-id}, change the data-id to the id of the device of the victim
  5. Stop intercepting or forward again and the device of the victim will be marked for wipe out.

Here is a video demo {F748890}

Impact

Attacker can wipe out the device of another user by using the device ID

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original