cesanta / docker_auth

Authentication server for Docker Registry 2
Apache License 2.0
1.28k stars 305 forks source link

Security issue: resolve GHSA-2c7c-3mj9-8fqh #381

Closed mikecook closed 9 months ago

mikecook commented 10 months ago

An attacker specifying a large "p2c" value can cause JSONWebEncryption.Decrypt and JSONWebEncryption.DecryptMulti to consume large amounts of CPU, causing a DoS.

Update package github.com/coreos/go-oidc to version that requires fixed version of go-jose. Note that github.com/square/go-jose is deprecated and has been replaced by github.com/go-jose/go-jose

commands run:

see:

mikecook commented 9 months ago

@techknowlogick Can you please review.

techknowlogick commented 9 months ago

@mikecook thanks for ping/PR. I've just kicked off CI and once passes I'll be able to merge :)