Bug 437858 - Ksieve Editor login failed, sends username as password
Summary: Ksieve Editor login failed, sends username as password
Status: RESOLVED FIXED
Alias: None
Product: sieveeditor
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-30 11:49 UTC by Waitman Gobble
Modified: 2023-03-08 05:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Waitman Gobble 2021-05-30 11:49:24 UTC
SUMMARY

Login PLAIN over SSL appears to have stopped working in Version 5.17.0 (21.04.0)
Mail log file indicates that Ksieve Editor is sending password as username?
ex:

managesieve-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<MYPASSWORD>, method=PLAIN,....

"MYPASSWORD" is my password entered in the "password" field in the login dialog window.


STEPS TO REPRODUCE
1. open ksieve editor
2. connect to entry in list
3. enter info in prompt for user/password

OBSERVED RESULT

login failed (mail log file shows password entered  as username)

EXPECTED RESULT

login success

SOFTWARE/OS VERSIONS
Windows: NO
macOS: NO
Linux/KDE Plasma:  NO
FreeBSD 13.0: YES
(available in About System)
KDE Plasma Version: Version 5.17.0 (21.04.0)
KDE Frameworks Version: Version 5.17.0 (21.04.0)
Qt Version: Version 5.17.0 (21.04.0)

ADDITIONAL INFORMATION
Comment 1 Melvin Vermeeren 2021-11-15 13:11:07 UTC
Having the same issue after upgrading to Debian bookworm. 5.23.2/21.08.1. Logs indeed show it is sending the password as username, exposing it to server's logfiles plainly.
Comment 2 Björn Bidar (Thaodan) 2022-04-27 19:43:49 UTC
I could work around by downgrading to a version prior to the one reported down below.
Comment 3 Björn Bidar (Thaodan) 2022-04-27 19:47:19 UTC
*Downgrading libksieve to 21.03.80-1.
Comment 4 bib 2023-03-07 23:05:11 UTC
FWIW, there is an error in libksieve/src/kmanagesieve/session.cpp at line 276 where it applies the password to the username. I've raised a new bug, id: 467034, with the details. Hopefully it will get fixed.
Comment 5 Laurent Montel 2023-03-08 05:53:06 UTC
Git commit 6b460ba93ac4ac503ba039d0b788ac7595120db1 by Laurent Montel.
Committed on 08/03/2023 at 05:51.
Pushed by mlaurent into branch 'master'.

Fix 467034: libksieve/src/kmanagesieve/session.cpp assigns password to username & gets logged(

Bug investigate by "bib" thanks
Related: bug 467034
FIXED-IN: 5.23.0

M  +1    -1    src/kmanagesieve/session.cpp

https://invent.kde.org/pim/libksieve/commit/6b460ba93ac4ac503ba039d0b788ac7595120db1