Skip to content
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

HOTP uri will be misformated since bash 5.2.2 on Fedora #171

Open
cmeissner opened this issue Oct 22, 2022 · 0 comments · May be fixed by #172
Open

HOTP uri will be misformated since bash 5.2.2 on Fedora #171

cmeissner opened this issue Oct 22, 2022 · 0 comments · May be fixed by #172

Comments

@cmeissner
Copy link

cmeissner commented Oct 22, 2022

In last week there was an update of bash package in Fedora (36). Before I had bash-5.1.16-2.fc36.x86_64 and after bash-5.2.2-1.fc36.x86_64 installed.

After that update the uri of my HOTP tokens is misformatted. Instead of incrementing counter=<N> to counter=<N+1> the new counter is concatinated with the old one to counter=<N>counter=<N+1>.

E.g.

otpauth://hotp/<LABEL>?secret=<SECRET>&counter=148counter=149&digits=6&issuer=<ISSUER>

A quick wokraround is to downgrade bash to latest working version and pinning to that version.

$ sudo dnf downgrade bash-5.1.16-2.fc36.x86_64
$ dnf install 'dnf-command(versionlock)'
$ dnf versionlock add bash
@cmeissner cmeissner changed the title HOTP uri will be misformated sind bash 5.2.2 on Fedora HOTP uri will be misformated since bash 5.2.2 on Fedora Oct 25, 2022
@jorti jorti linked a pull request Nov 5, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant