-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PADD does not properly reject failed authentication when 2FA is enabled on WebUI #414
Comments
This is a bug introduced by #392. Please try branch |
that works for passing the secret |
Also just for clarity on this
PADD rejects other wrong passwords correctly but when you provide the WebUI password specifically it does what is seen in the screenshot above |
I'll have a look at supporting 2FA/correctly rejecting 2FA. Did you try to login with enabled 2FA and the app password? |
Yes the app password is working correctly after using fix/secret found in #415 I just stumbled upon this issue by accident yesterday and just figured I'd report it. |
Could you please try |
Not sure what is expected but it's worth noting, this is the same behavior as the WebUI (https://pi.hole), will accept App password or WebUI password with 2FA. |
Yes, this is kind of by design. As we don't know what type of password the user inputs we ask for the second factor. However, if you supply the app password, the 2fa can be empty or some random number. |
can confirm passing |
i would consider this fixed by #416 if the behavior described in #416 (comment) is what is desired. |
should this be a separate issue? |
Probably similar to this issue: pi-hole/pi-hole#5771 Try to put the password in single quotes, like this: EDIT: |
@rdwebdesign it is fixed with #415 (fixes password not being accepted with |
Describe the bug
when 2FA is enabled on WebUI and you provide the WebUI password (w/o TOTP) PADD will say
Authentication successful.
and will produce a broken dashboard as seen in screenshot.It appears that PADD assumes it is dealing with pi-hole in a docker container given the output shown.
To Reproduce
Steps to reproduce the behavior:
./padd.sh --server pi.hole --secret +pass/word=
) and provide WebUI password (w/o TOTP)Expected behavior
give failed login error instead of broken output
Screenshots

Additional context
also side question:
how does PADD expect to receive the
--secret
?i have tried with
double quotes
"+pass/word="
single quotes
'+pass/word='
no quotes
+pass/word=
it always rejects it and asks for it again then i can paste into terminal and PADD will accept it.
the password provided by the api has
+
,/
, and=
in it. Is bash somehow misinterpreting these characters?The text was updated successfully, but these errors were encountered: