-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Bug] Replace String.equals with MessageDigest.isEqual #21053
Comments
Hi @Crispy-fried-chicken |
Sorry, I didn't see this security-policy before, so I need to send another email to [email protected] and [email protected] now? |
Hi @mattisonchao I've already push a PR for this issue, please check it. Thank you! |
Yes, please send an email to both addresses. |
OK, I've already sent the email. Besides, due to the widespread use of this component, maybe we can request a CVE-ID for this vulnerability? |
@Crispy-fried-chicken Why do you continue to comment about this in public? The PMC is aware of this and will do the proper security response in due course. |
Search before asking
Version
e951cd0
Minimal reproduce step
I cannot be reproduced stably
What did you expect to see?
During signature verification, no matter whether the verification is correct or not, the time spent should be the same
What did you see instead?
The time spent in signature verification will be positively correlated with the correct substring length.
Anything else?
Hi there,
I may have discovered a method in the newest version of pulsar, which has "Observable Timing Discrepancy" vulnerability. The vulnerability is located in the method
org.apache.pulsar.broker.authentication.SaslRoleTokenSigner.verifyAndExtract(String signedStr)
. The vulnerability bears similarities to a recent CVE disclosure CVE-2020-1926 in the "apache/hive" project.The source vulnerability information is as follows:
Vulnerability Description: The vulnerability exists within the String verifyAndExtract(String signedStr) method of the org.apache.pulsar.broker.authentication.SaslRoleTokenSigner class. It is responsible for authenticating and extracting SaslRoleToken. SaslRoleToken is a token used for authentication and authorization, which contains a signed string of information about roles and permissions.But the authentication snippet is similar to the vulnerable snippet for CVE-2020-1926 and may have the same consequence as CVE-2020-1926, where isvulnerable to timing attacks. Therefore, maybe you need to fix the vulnerability with much the same fix code as the CVE-2020-1926 patch.
Considering the potential riskes it may have, I am willing to cooperate with your to verify, address, and report the identified vulnerability promptly through responsible means. If you require any further information or assistance, please do not hesitate to reach out to me.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: