Lucene search

K
hackeroneMikaelgundersenH1:2067572
HistoryJul 12, 2023 - 7:28 p.m.

Nextcloud: New AppPassword can be generated without password confirmation

2023-07-1219:28:02
mikaelgundersen
hackerone.com
$250
30
nextcloud
apppassword
vulnerability
bypass
bugbounty

0.001 Low

EPSS

Percentile

19.9%

There is protection on https://github.com/nextcloud/server/blob/master/apps/settings/lib/Controller/AuthSettingsController.php#L122 that you must have recently entered your password to be able to generate a new AppPassword. However if an attacker would obtain access to your system (say you forgot to lock it when taking a quick bathroom break).

They can abuse a route to just obtain this. https://SERVER/ocs/v2.php/core/getapppassword
Probably without you ever noticing.

Impact

The password confirmation to generate an app password is effectively useless as it is trivial to bypass.

0.001 Low

EPSS

Percentile

19.9%