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

8 Uses of deprecated API can be used to cause DoS in user-facing endpoints #1946

Closed
whynowy opened this issue May 10, 2022 · 0 comments · Fixed by #1966
Closed

8 Uses of deprecated API can be used to cause DoS in user-facing endpoints #1946

whynowy opened this issue May 10, 2022 · 0 comments · Fixed by #1966
Labels

Comments

@whynowy
Copy link
Member

whynowy commented May 10, 2022

Severity Medium
Difficulty Medium
Target  

Several HandleRoute endpoints make use of the deprecated ioutil.ReadAll(). ioutil.ReadAll() reads all the data into memory. As such, an attacker who sends a large request to the Argo Events server will be able to crash it and cause denial of service.


Eventsources susceptible to an out-of-memory denial-of-service attack:

  1. AWS SNS

  2. Bitbucket

  3. Bitbucket Server

  4. Gitlab

  5. Slack

  6. Storagegrid

  7. Webhook


Note that the Stripe Event Source uses ioutil.ReadAll() but limits the size of the request body: https:/argoproj/argo-events/blob/master/eventsources/sources/stripe/start.go#L77



Since io/ioutil has ceased maintenance we recommend discontinuing all use of this package.
Severity Medium Difficulty Medium Target

Several HandleRoute endpoints make use of the deprecated ioutil.ReadAll(). ioutil.ReadAll() reads all the data into memory. As such, an attacker who sends a large request to the Argo Events server will be able to crash it and cause denial of service.

Eventsources susceptible to an out-of-memory denial-of-service attack:
AWS SNS
Bitbucket
Bitbucket Server
Gitlab
Slack
Storagegrid
Webhook

Note that the Stripe Event Source uses ioutil.ReadAll() but limits the size of the request body: https:/argoproj/argo-events/blob/master/eventsources/sources/stripe/start.go#L77

Since io/ioutil has ceased maintenance we recommend discontinuing all use of this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant