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

OSCORE: fix HMAC validation during context rederivation #2295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

burrrrrr
Copy link

This is related to #2294 but does not directly address it.

I found that the server was always accepting duplicate requests as valid for request 2 during context rederivation. It looks like the expected HMAC output is compared against itself, so the received context ID from the request is not validated.

@boaks
Copy link
Contributor

boaks commented Oct 14, 2024

Thanks for your contribution.
Please read the CONTRIBUTING instructions and sign the ECA.
In general that's required to "grant" others the usage of your contribution.

@boaks
Copy link
Contributor

boaks commented Oct 14, 2024

As I wrote in your issue, I'm not common to OSCORE.

@rikard-sics
Could you please have a look this?

In the server handling of request eclipse-californium#2, the received HMAC was not being validated
@rikard-sics
Copy link
Contributor

Could you please have a look this?

Yes, I will have a look at this PR and the related issue. My initial impression is that the way to go is to stop the OSCORE layer from accepting requests from the client (with same token & MID) in the first place.

@boaks
Copy link
Contributor

boaks commented Oct 18, 2024

Please see alternative PR #2296

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 this pull request may close these issues.

3 participants