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

DBUS_COOKIE_SHA1 auth does not work at all #124

Open
bspot opened this issue Apr 12, 2023 · 0 comments
Open

DBUS_COOKIE_SHA1 auth does not work at all #124

bspot opened this issue Apr 12, 2023 · 0 comments

Comments

@bspot
Copy link

bspot commented Apr 12, 2023

DBUS_COOKIE_SHA1 authentication will always fail, because the reply message to the server challenge is missing a space ( ) between the client challenge and the response in

const reply = hexlify(clientChallenge + response);

Relevant part of the spec: https://dbus.freedesktop.org/doc/dbus-specification.html#text:It%20concatenates%20the%20client's%20challenge%20string,%20a%20space%20character,%20and%20the%20SHA-1%20hex%20diges:~:text=It%20concatenates%20the%20client%27s%20challenge%20string%2C%20a%20space%20character%2C%20and%20the%20SHA%2D1%20hex%20digest

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

No branches or pull requests

1 participant