HexBrain

Nextcloud · Report #885041

The password of a mail share is not hashed if the password is given when the share is created

Validstatus
lowseverity
2upvotes
28 Oct 2020disclosed

How it was found

Note that the password is properly hashed if the password is autogenerated (https://github.com/nextcloud/server/blob/caff1023ea72bb2ea94130e18a2a6e2ccf819e5f/apps/sharebymail/lib/ShareByMailProvider.php#L236) or if the share is later updated with another password (https://github.com/nextcloud/server/blob/16da29caba1cefa4c0762fae6014d6d2c737ee94/lib/private/Share20/Manager.php#L1085).

Impact

An attacker would be able to get the plain text password of a mail share.

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