-
Notifications
You must be signed in to change notification settings - Fork 1
Fix 6 vulnerable dependencies identified by Prisma Cloud #10
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bridgecrew has found errors in this PR ⬇️
| django==1.2 | ||
| flask==0.6 | ||
| requests==2.26.0 | ||
| django == 3.2.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
django 3.2.4 / requirements.txt
Total vulnerabilities: 19
| Critical: 5 | High: 12 | Medium: 2 | Low: 0 |
|---|
| Vulnerability ID | Severity | CVSS | Fixed in | Status |
|---|---|---|---|---|
| CVE-2023-31047 | 9.8 | 3.2.19 |
Open | |
| CVE-2022-34265 | 9.8 | 3.2.14 |
Open | |
| CVE-2022-28347 | 9.8 | 3.2.13 |
Open | |
| CVE-2022-28346 | 9.8 | 3.2.13 |
Open | |
| CVE-2021-35042 | 9.8 | 3.2.5 |
Open | |
| CVE-2023-24580 | 7.5 | 3.2.18 |
Open | |
| CVE-2023-23969 | 7.5 | 3.2.17 |
Open | |
| CVE-2022-41323 | 7.5 | 3.2.16 |
Open | |
| CVE-2022-36359 | 8.8 | 3.2.15 |
Open | |
| CVE-2022-23833 | 7.5 | 3.2.12 |
Open | |
| CVE-2021-44420 | 7.3 | 3.2.10 |
Open | |
| CVE-2021-45115 | 7.5 | 3.2.11 |
Open | |
| CVE-2021-45116 | 7.5 | 3.2.11 |
Open | |
| CVE-2023-46695 | 7.5 | 3.2.23 |
Open | |
| CVE-2023-41164 | 7.5 | 3.2.21 |
Open | |
| CVE-2023-43665 | 7.5 | 3.2.22 |
Open | |
| CVE-2023-36053 | 7.5 | 3.2.20 |
Open | |
| CVE-2022-22818 | 6.1 | 3.2.12 |
Open | |
| CVE-2021-45452 | 5.3 | 3.2.11 |
Open |
aa3b280 to
0daaf16
Compare
| django==1.2 | ||
| flask==0.6 | ||
| requests==2.26.0 | ||
| django == 3.2.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
django 3.2.4 / requirements.txt
Total vulnerabilities: 19
| Critical: 5 | High: 12 | Medium: 2 | Low: 0 |
|---|
| Vulnerability ID | Severity | CVSS | Fixed in | Status |
|---|---|---|---|---|
| CVE-2023-31047 | 9.8 | 3.2.19 |
Open | |
| CVE-2022-34265 | 9.8 | 3.2.14 |
Open | |
| CVE-2022-28347 | 9.8 | 3.2.13 |
Open | |
| CVE-2022-28346 | 9.8 | 3.2.13 |
Open | |
| CVE-2021-35042 | 9.8 | 3.2.5 |
Open | |
| CVE-2023-36053 | 7.5 | 3.2.20 |
Open | |
| CVE-2023-24580 | 7.5 | 3.2.18 |
Open | |
| CVE-2023-23969 | 7.5 | 3.2.17 |
Open | |
| CVE-2022-41323 | 7.5 | 3.2.16 |
Open | |
| CVE-2022-36359 | 8.8 | 3.2.15 |
Open | |
| CVE-2022-23833 | 7.5 | 3.2.12 |
Open | |
| CVE-2021-44420 | 7.3 | 3.2.10 |
Open | |
| CVE-2021-45115 | 7.5 | 3.2.11 |
Open | |
| CVE-2021-45116 | 7.5 | 3.2.11 |
Open | |
| CVE-2023-46695 | 7.5 | 3.2.23 |
Open | |
| CVE-2023-41164 | 7.5 | 3.2.21 |
Open | |
| CVE-2023-43665 | 7.5 | 3.2.22 |
Open | |
| CVE-2022-22818 | 6.1 | 3.2.12 |
Open | |
| CVE-2021-45452 | 5.3 | 3.2.11 |
Open |
Prisma Cloud has detected new vulnerabilities or dependencies in the scan performed on Thu, 11 Jan 2024 10:27:59 UTC
This PR includes the fixes for the vulnerabilities discovered below:
Set-Cookieheaders, it may send one client'ssessioncookie to other clients. The severity depends on the application's use of the session and the proxy's behavior regarding cookies. The risk depends on all these conditions being met. 1. The application must be hosted behind a caching proxy that does not strip cookies or ignore responses with cookies. 2. The application setssession.permanent = True3. The application does not access or modify the session at any point during a request. 4.SESSION_REFRESH_EACH_REQUESTenabled (the default). 5. The application does not set aCache-Controlheader to indicate that a page is private or should not be cached. This happens because vulnerable versions of Flask only set theVary: Cookieheader when the session is accessed or modified, not when it is refreshed (re-sent to update the expiration) without being accessed or modified. This issue has been fixed in versions 2.3.2 and 2.2.5.FileBackedOutputStreamin Google Guava versions 1.0 to 31.1 on Unix systems and Android Ice Cream Sandwich allows other users and apps on the machine with access to the default Java temporary directory to be able to access the files created by the class. Even though the security vulnerability is fixed in version 32.0.0, we recommend using version 32.0.1 as version 32.0.0 breaks some functionality under Windows.grpc.MaxConcurrentStreamsserver option to apply a limit to the server's resources used for any single connection. ### Workarounds None. ### References #6703promhttp.InstrumentHandler*middleware exceptRequestsInFlight; not filter any specific methods (e.g GET) before middleware; pass metric withmethodlabel name to our middleware; and not have any firewall/LB/proxy that filters away requests with unknownmethod. client_golang version 1.11.1 contains a patch for this issue. Several workarounds are available, including removing themethodlabel name from counter/gauge used in the InstrumentHandler; turning off affected promhttp handlers; adding custom middleware before promhttp handler that will sanitize the request method given by Go http.Request; and using a reverse proxy or web application firewall, configured to only allow a limited set of methods.v5.11. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion ingo-gitclients. Applications using only the in-memory filesystem supported bygo-gitare not affected by this vulnerability. This is ago-gitimplementation issue and does not affect the upstreamgitcli. ### Patches Users running versions ofgo-gitfromv4and above are recommended to upgrade tov5.11in order to mitigate this vulnerability. ### Workarounds In cases where a bump to the latest version ofgo-gitis not possible, we recommend limiting its use to only trust-worthy Git servers. ## Credit Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us. ### References - GHSA-mw99-9chc-xw7rrebuild_proxiesto reattach theProxy-Authorizationheader to requests. For HTTP connections sent through the tunnel, the proxy will identify the header in the request itself and remove it prior to forwarding to the destination server. However when sent over HTTPS, theProxy-Authorizationheader must be sent in the CONNECT request as the proxy has no visibility into the tunneled request. This results in Requests forwarding proxy credentials to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate sensitive information. This issue has been patched in version 2.31.0.RandomAlphaNumeric(int)andCryptoRandomAlphaNumeric(int)are not as random as they should be. Small values ofintin the functions above will return a smaller subset of results than they should. For example,RandomAlphaNumeric(1)will always return a digit in the 0-9 range, whileRandomAlphaNumeric(4)will return around ~7 million of the ~13M possible permutations. This is considered a security release because programs that rely upon random generators for passwords are at an increased risk of brute force-style password guessing. There is also a higher probability of collision. The problem was the result of a mistaken regular expression that only accepted random strings if they contained a digit from[0-9]. That restriction has been removed. ### Patches This issue has been corrected in v1.1.1. ### Workarounds If you cannot upgrade to v1.1.1, you can work around the issue by callingRandomAlphaNumericCustom(N, true, true)