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

Various potential security issues within Appollo GraphQL iOS #3464

Closed
richardtop opened this issue Oct 25, 2024 · 5 comments
Closed

Various potential security issues within Appollo GraphQL iOS #3464

richardtop opened this issue Oct 25, 2024 · 5 comments
Labels
question Issues that have a question which should be addressed

Comments

@richardtop
Copy link

Summary

Hello,
I’d like to clarify a few potential security vulnerabilities related to the Apollo GraphQL code.

I’ve discovered a few security issues that might be relevant to the Apollo codebase, more specifically, they might be related to the test code.
Could you please clarify, whether any of these issues are known to you and/or whether they were related only to the test code.

https://github.com/apollographql/apollo-ios/tree/1.1.3/SimpleUploadServer

The issues are as follows:
https://cwe.mitre.org/data/definitions/23.html Path Traversal
Denial of Service (DoS)
Prototype Poisoning
Denial of Service (DoS) through Nested GraphQL Queries

Could you please confirm that this “SimpleUploadServer” has been used exclusively for testing?
I cannot see this server present in the newest versions of the Apollo GraphQL (1.15.2), could you please explain why it was removed?

If that server has been used for anything other than the test code, I can provide more details regarding those security issues. Otherwise, it’s clear, that those are non-issues, as the testing code wasn’t used in the production systems and those vulnerabilities couldn’t have been exploited.

Version

1.1.3

Steps to reproduce the behavior

Logs

No response

Anything else?

I've tried to reach thru [email protected], but received no reply. Please get in touch with me to discuss these issues in detail.

@richardtop richardtop added bug Generally incorrect behavior needs investigation labels Oct 25, 2024
@calvincestari calvincestari added question Issues that have a question which should be addressed and removed bug Generally incorrect behavior needs investigation labels Oct 28, 2024
@calvincestari
Copy link
Member

Hi @richardtop 👋🏻

You're correct in the assumption that SimpleUploadServer was exclusively to support test code. It has never been included in any of the iOS libraries.

  • In the version you reference (1.1.3) you can see it's usage in our CircleCI pipeline.
  • From version 1.6.0 the repo structure was changed so the location of things changed too.
  • Version 1.15.1 is the last version where SimpleUploadServer was in the repo and used in CI.
  • As of Sept '24 (#497) it is no longer in the repo nor used anywhere.

Copy link
Contributor

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.

@richardtop
Copy link
Author

HI @calvincestari, appreciate for the thorough feedback. This is an important issue since it concerns the software security. Glad to get this kind of answer.

Also, there is some issue, I see that my email to [email protected] has never been answered. i.e. are you monitoring that email actively? From my understanding that's the intent of the email, as to not raise these issues publicly, before they're correctly disclosed.

I'm only disclosing these issues as I've suspected they were related to the testing code.

@peakematt
Copy link
Contributor

peakematt commented Oct 30, 2024

Hi @richardtop ! I'm a security engineer at Apollo. I want to apologize for the lack of response to your email. We did receive the message to security@ and it automatically generated a ticket for us to work. It looks like the ticket was opened in a way where the messages I was trying to send to you from the ticket were being sent back to security@ rather than your email. I believe some anti-email-loop protections were preventing me from seeing that I was talking to myself. 😓 We'll check for any other tickets that may be in a similar state and sort out whatever issue obviously exists in the ticket creation process.

@richardtop
Copy link
Author

Thanks for the follow-up. Looks like we've uncovered some more important security issue. Glad you were able to troubleshoot this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that have a question which should be addressed
Projects
None yet
Development

No branches or pull requests

3 participants