pwndoc / pwndoc

Pentest Report Generator
https://pwndoc.github.io/pwndoc
MIT License
2.22k stars 417 forks source link

Administrator can't disable account MFA #407

Open Zeecka opened 1 year ago

Zeecka commented 1 year ago

One of my user broke his phone today and lost his MFA client. As an administrator, I'd like to disable his MFA (and bind it later with a new client).

image

Let me know if you consider this feature as a security issue.

Zeecka commented 1 year ago

Manual fix:

$ docker exec -it mongo-pwndoc /bin/sh
$ mongo   # mongo shell in container
> use pwndoc;   # change current db
> db.users.update({"username":"mylogin"},{$set:{"totpEnabled":false}});  # Edit user totp