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

Fix cache poisoning #1362

Merged
merged 2 commits into from
May 20, 2022
Merged

Conversation

paulpdaniels
Copy link
Collaborator

Fixes a potential security vulnerability in the ApolloPersistedQuery wrapper that allowed for cache poisoning.

Copy link
Collaborator

@frekw frekw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -6,6 +6,9 @@ import caliban.wrappers.Wrapper.OverallWrapper
import caliban.{ CalibanError, GraphQLRequest, GraphQLResponse, InputValue }
import zio.{ Has, Layer, Ref, UIO, ZIO }

import java.nio.charset.StandardCharsets
import javax.xml.bind.DatatypeConverter
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm it doesn't find this in the CI, is that specific to some JVMs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, I thought javax.xml would be safe but it wasn't too hard to write my own.

@ghostdogpr ghostdogpr merged commit 4143637 into ghostdogpr:master May 20, 2022
@paulpdaniels paulpdaniels deleted the fix-cache-poisoning branch June 5, 2022 10:35
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.

None yet

3 participants