SharonKoch / skf-labs

Repo for all the OWASP-SKF Docker lab examples
Apache License 2.0
0 stars 1 forks source link

Flask-2.2.5-py3-none-any.whl: 1 vulnerabilities (highest severity is: 5.4) - autoclosed #91

Closed mend-for-github-com[bot] closed 6 months ago

mend-for-github-com[bot] commented 8 months ago
Vulnerable Library - Flask-2.2.5-py3-none-any.whl

Path to dependency file: /python/graphql-IDOR/requirements.txt

Path to vulnerable library: /python/graphql-IDOR/requirements.txt,/python/File-upload/requirements.txt,/python/user-registration-process/requirements.txt,/python/Ldap-injection/requirements.txt,/python/XSS-url/requirements.txt,/python/XSS-DOM/requirements.txt,/python/weak-lock-out-mechanism/requirements.txt,/python/CSSI/requirements.txt,/python/DES-Pickle-2/requirements.txt,/python/Attack-Server/requirements.txt,/python/XSS/requirements.txt,/python/Ldap-injection-harder/requirements.txt,/python/JWT-null/requirements.txt,/python/Formula-injection/requirements.txt,/python/Url-redirection-harder2/requirements.txt,/python/TLS-downgrade/requirements.txt,/python/session-hijacking-xss/requirements.txt,/python/Untrusted-sources-js/requirements.txt,/python/credentials-guessing-2/requirements.txt,/python/http-response-splitting/requirements.txt,/python/DES-Pickle/requirements.txt,/python/graphql-injections/requirements.txt,/python/DNS-rebinding/requirements.txt,/python/RaceCondition-file-write/requirements.txt,/python/CMD/requirements.txt,/python/CMD3/requirements.txt,/python/SQLI-blind/requirements.txt,/python/Auth-bypass-2/requirements.txt,/python/Unreferenced-files/requirements.txt,/python/Auth-bypass-1/requirements.txt,/python/XSS-DOM-2/requirements.txt,/python/ratelimiting/requirements.txt,/python/Auth-bypass-3/requirements.txt,/python/SQLI-login-bypass/requirements.txt,/python/Content-type/requirements.txt,/python/SSTI/requirements.txt,/python/JWT-secret/requirements.txt,/python/graphql-mutation/requirements.txt,/python/CSTI/requirements.txt,/python/CSRF-SameSite/requirements.txt,/python/SQLI/requirements.txt,/python/DoS-regex/requirements.txt,/python/Url-redirection/requirements.txt,/python/Host-Header-Authentication-Bypass/requirements.txt,/python/CMD-Blind/requirements.txt,/python/Threat-modeling/requirements.txt,/python/weak-or-unenforced-username-policy/requirements.txt,/python/NoSQL/requirements.txt,/python/XSS-attribute/requirements.txt,/python/X-allow-origin/requirements.txt,/python/CSRF-weak/requirements.txt,/python/RTLO/requirements.txt,/python/IDOR/requirements.txt,/python/Auth-bypass/requirements.txt,/python/Auth-bypass-simple/requirements.txt,/python/account-provisioning-process/requirements.txt,/python/CMD4/requirements.txt,/python/WebSocket-Message-Manipulation/requirements.txt,/python/credentials-guessing-1/requirements.txt,/python/RFI/requirements.txt,/python/client-side-restriction-bypass/requirements.txt,/python/DES-Yaml/requirements.txt,/python/SSRF/requirements.txt,/python/CMD2/requirements.txt,/python/Web-cache-poisoning/requirements.txt,/python/LFI/requirements.txt,/python/CSRF/requirements.txt,/python/SessionPuzzle/requirements.txt,/python/client-side-restriction-bypass-2/requirements.txt,/python/CORS/requirements.txt,/python/LFI-2/requirements.txt,/python/Url-redirection-harder/requirements.txt,/python/HTML-injection/requirements.txt,/python/Session-Management-2/requirements.txt,/python/RaceCondition/requirements.txt,/python/graphql-dos-resource-exhaustion/requirements.txt,/python/CSP/requirements.txt,/python/Session-Management-1/requirements.txt,/python/info-leakeage-metadata/requirements.txt,/python/info-leakeage-comments/requirements.txt,/python/graphql-info-introspection/requirements.txt,/python/XXE/requirements.txt,/python/LFI-3/requirements.txt,/python/SQLI-like/requirements.txt

Found in HEAD commit: dbff3320673205dea2e0a4c513d54497ca905aab

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (Flask version) Remediation Possible**
CVE-2024-34064 Medium 5.4 Jinja2-3.1.3-py3-none-any.whl Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-34064 ### Vulnerable Library - Jinja2-3.1.3-py3-none-any.whl

A very fast and expressive template engine.

Library home page: https://files.pythonhosted.org/packages/30/6d/6de6be2d02603ab56e72997708809e8a5b0fbfee080735109b40a3564843/Jinja2-3.1.3-py3-none-any.whl

Path to dependency file: /python/graphql-IDOR/requirements.txt

Path to vulnerable library: /python/graphql-IDOR/requirements.txt,/python/File-upload/requirements.txt,/python/user-registration-process/requirements.txt,/python/Ldap-injection/requirements.txt,/python/XSS-url/requirements.txt,/python/XSS-DOM/requirements.txt,/python/weak-lock-out-mechanism/requirements.txt,/python/CSSI/requirements.txt,/python/DES-Pickle-2/requirements.txt,/python/Attack-Server/requirements.txt,/python/XSS/requirements.txt,/python/Ldap-injection-harder/requirements.txt,/python/JWT-null/requirements.txt,/python/Formula-injection/requirements.txt,/python/Url-redirection-harder2/requirements.txt,/python/TLS-downgrade/requirements.txt,/python/session-hijacking-xss/requirements.txt,/python/Untrusted-sources-js/requirements.txt,/python/credentials-guessing-2/requirements.txt,/python/http-response-splitting/requirements.txt,/python/DES-Pickle/requirements.txt,/python/graphql-injections/requirements.txt,/python/DNS-rebinding/requirements.txt,/python/RaceCondition-file-write/requirements.txt,/python/CMD/requirements.txt,/python/CMD3/requirements.txt,/python/SQLI-blind/requirements.txt,/python/Auth-bypass-2/requirements.txt,/python/Unreferenced-files/requirements.txt,/python/Auth-bypass-1/requirements.txt,/python/XSS-DOM-2/requirements.txt,/python/ratelimiting/requirements.txt,/python/Auth-bypass-3/requirements.txt,/python/SQLI-login-bypass/requirements.txt,/python/Content-type/requirements.txt,/python/SSTI/requirements.txt,/python/JWT-secret/requirements.txt,/python/graphql-mutation/requirements.txt,/python/CSTI/requirements.txt,/python/CSRF-SameSite/requirements.txt,/python/SQLI/requirements.txt,/python/DoS-regex/requirements.txt,/python/Url-redirection/requirements.txt,/python/Host-Header-Authentication-Bypass/requirements.txt,/python/CMD-Blind/requirements.txt,/python/Threat-modeling/requirements.txt,/python/weak-or-unenforced-username-policy/requirements.txt,/python/NoSQL/requirements.txt,/python/XSS-attribute/requirements.txt,/python/X-allow-origin/requirements.txt,/python/CSRF-weak/requirements.txt,/python/RTLO/requirements.txt,/python/IDOR/requirements.txt,/python/Auth-bypass/requirements.txt,/python/Auth-bypass-simple/requirements.txt,/python/account-provisioning-process/requirements.txt,/python/CMD4/requirements.txt,/python/WebSocket-Message-Manipulation/requirements.txt,/python/credentials-guessing-1/requirements.txt,/python/RFI/requirements.txt,/python/client-side-restriction-bypass/requirements.txt,/python/DES-Yaml/requirements.txt,/python/SSRF/requirements.txt,/python/CMD2/requirements.txt,/python/Web-cache-poisoning/requirements.txt,/python/LFI/requirements.txt,/python/CSRF/requirements.txt,/python/SessionPuzzle/requirements.txt,/python/client-side-restriction-bypass-2/requirements.txt,/python/CORS/requirements.txt,/python/LFI-2/requirements.txt,/python/Url-redirection-harder/requirements.txt,/python/HTML-injection/requirements.txt,/python/Session-Management-2/requirements.txt,/python/RaceCondition/requirements.txt,/python/graphql-dos-resource-exhaustion/requirements.txt,/python/CSP/requirements.txt,/python/Session-Management-1/requirements.txt,/python/info-leakeage-metadata/requirements.txt,/python/info-leakeage-comments/requirements.txt,/python/graphql-info-introspection/requirements.txt,/python/XXE/requirements.txt,/python/LFI-3/requirements.txt,/python/SQLI-like/requirements.txt

Dependency Hierarchy: - Flask-2.2.5-py3-none-any.whl (Root Library) - :x: **Jinja2-3.1.3-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: dbff3320673205dea2e0a4c513d54497ca905aab

Found in base branch: master

### Vulnerability Details

Jinja is an extensible templating engine. The `xmlattr` filter in affected versions of Jinja accepts keys containing non-attribute characters. XML/HTML attributes cannot contain spaces, `/`, `>`, or `=`, as each would then be interpreted as starting a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders these in pages that other users see as well, an attacker could use this to inject other attributes and perform XSS. The fix for CVE-2024-22195 only addressed spaces but not other characters. Accepting keys as user input is now explicitly considered an unintended use case of the `xmlattr` filter, and code that does so without otherwise validating the input should be flagged as insecure, regardless of Jinja version. Accepting _values_ as user input continues to be safe. This vulnerability is fixed in 3.1.4.

Publish Date: 2024-05-06

URL: CVE-2024-34064

### CVSS 3 Score Details (5.4)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/pallets/jinja/security/advisories/GHSA-h75v-3vvj-5mfj

Release Date: 2024-05-06

Fix Resolution: Jinja2 - 3.1.4

mend-for-github-com[bot] commented 6 months ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 6 months ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

mend-for-github-com[bot] commented 6 months ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.