Snyk
security.snyk.io › snyk vulnerability database › pip
Directory Traversal in werkzeug | CVE-2019-14322 | Snyk
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the ...
CTFtime.org
ctftime.org › writeup › 26943
CTFtime.org / b01lers CTF / lorem_ipsum / Writeup
1. Don’t use Werkzeug debugger lol 2. Give the `?animal=` GET parameter something unexpected (`?animal=blah`) and get yourself a traceback with a python console (Werkzeug lol) 3. Oh wait it’s PIN protected 4. Nevermind you can generate the pin yourself 5. Directory-traversal though `?animal=` ...
Snyk
security.snyk.io › snyk vulnerability database › pip › werkzeug
werkzeug 2.2.2 | Snyk
Security vulnerabilities and package health score for pip package werkzeug 2.2.2
HackTricks
book.hacktricks.xyz › home › network services pentesting › pentesting web › werkzeug
Werkzeug / Flask Debug - HackTricks
2 days ago - The PIN generation mechanism can be studied from the Werkzeug source code repository, though it is advised to procure the actual server code via a file traversal vulnerability due to potential version discrepancies. To exploit the console PIN, two sets of variables, probably_public_bits and private_bits, are needed: username: Refers to the user who initiated the Flask session. ... getattr(mod, '__file__', None): Represents the full path to app.py within the Flask directory (e.g., /usr/local/lib/python3.5/dist-packages/flask/app.py).
GitHub
github.com › RipudamanKaushikDal › projects › issues › 21
Security Vulnerability Found · Issue #21 · RipudamanKaushikDal/projects
This leads to a path traversal attack. The bug can be verified using a proof of concept similar to the one shown below. curl --path-as-is 'http://<domain>/photos//../../../../etc/passwd"' This can be fixed by preventing flow of untrusted data to the vulnerable send_file function. In case the application logic necessiates this behaviour, one can either use the werkzeug.utils.safe_join to join untrusted paths or replace flask.send_file calls with flask.send_from_directory calls.
Author RipudamanKaushikDal
Versioneye
versioneye.com › Python › werkzeug › 0.11
Python/werkzeug/0.11
Werkzeug's safe_join function allows path segments with Windows device names. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. send_from_directory uses safe_join to safely serve files at user-specified paths under ...
Veracode
sourceclear.com › vulnerability-database › security › directory-traversal › python › sid-4415
Directory Traversal Vulnerability in the Werkzeug library + 1 More | Veracode
Werkzeug (werkzeug) and flask (flask). Flask and Werkzeug are vulnerable to directory traversal attacks. These attacks are possible because it uses the `safe_join` method. In Windows, `safe_join` doesn't correctly filter file paths allowing ...
Veracode
sca.analysiscenter.veracode.com › vulnerability-database › security › 1 › 1 › sid-20917 › summary
Directory Traversal Vulnerability in the werkzeug library
We cannot provide a description for this page right now
Snyk
security.snyk.io › snyk vulnerability database › pip
Directory Traversal in werkzeug | CVE-2024-49766 | Snyk
Affected versions of this package are vulnerable to Directory Traversal due to a bypass for os.path.isabs(), which allows the improper handling of UNC paths beginning with /, in the safe_join() function.
Snyk
security.snyk.io › snyk vulnerability database › linux › rhel
Directory Traversal in python3-werkzeug | CVE-2022-41722 | Snyk
December 30, 2023 - High severity (7.5) Directory Traversal in python3-werkzeug | CVE-2022-41722
GitLab
0xdf.gitlab.io › 2022 › 10 › 08 › htb-opensource.html
HTB: OpenSource | 0xdf hacks stuff - GitLab
October 8, 2022 - I’ll do a quick check to see if I can traverse up directories by sending the POST request to Burp Repeater and adding ../../../../../../../ to the start of the filename, but it seems to strip that and save it in the same place. I could spend time trying to bypass that filtering, but as I have the source, I’ll turn there. nmap identified that this was a Werkzeug Python server, so it’s likely running Flask. This is from the HTTP response headers: HTTP/1.1 200 OK Server: Werkzeug/2...
Snyk
security.snyk.io › snyk vulnerability database › pip
werkzeug | Snyk
Further analysis of the maintenance status of Werkzeug based on released PyPI versions cadence, the repository activity, and other data points determined that its maintenance is Healthy.
GitHub
github.com › rapid7 › metasploit-framework › blob › master › documentation › modules › exploit › multi › http › werkzeug_debug_rce.md
metasploit-framework/documentation/modules/exploit/multi/http/werkzeug_debug_rce.md at master · rapid7/metasploit-framework
A custom PIN can be set by the application developer as an environment variable, but it is more commonly generated by Werkzeug using an algorithm that is seeded by information about the environment that the application is running in. Therefore, if the debugger or console is enabled and is not protected by a PIN, or if it is possible to obtain the PIN, cookie or the required information about the environment that the app is running in (e.g. by exploiting a separate path traversal bug in the app) then remote Python code execution will be possible.
Author rapid7
Exploit Notes
exploit-notes.hdks.org › exploit › web › framework › python › werkzeug-pentesting
Introduction - Exploit Notes
January 18, 2024 - git clone https://github.com/hdks-bug/exploitnotes.git cd exploitnotes python3 -m venv .venv source .venv/bin/activate pip3 install -r requirements.txt zensical serve
IBM
ibm.com › support › pages › security-bulletin-vulnerabilities-mongodb-python-nodejs-golang-go-linux-kernel-affect-ibm-spectrum-protect-plus-0
Security Bulletin: Vulnerabilities in MongoDB, Python, Node.js, Golang Go, Linux kernel affect IBM Spectrum Protect Plus
March 10, 2026 - Applications using Python = 3.11, or not using Windows, are not vulnerable. Werkzeug version 3.0.6 contains a patch. CWE: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CVSS Source: NVD CVSS Base score: 5.3 CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) CVEID: CVE-2024-49767 DESCRIPTION: Werkzeug is a Web Server Gateway Interface web application library.
Cybersecurity Help
cybersecurity-help.cz › vdb › palletsprojects › werkzeug › 2.2.2
Known Vulnerabilities in Werkzeug 2.2.2
List of known vulnerabilities in Werkzeug in version 2.2.2
Vulnlab
arz101.medium.com › hackthebox-opensource-84e644164a4c
HackTheBox — Opensource - ARZ101 - Medium
October 8, 2022 - In views.py, we can see that it has a functionality to upload files in the directory uploads and in the upload_file function it's calling another function from utils.py named get_file_name · This function is being used for sanitizing file name in case of a LFI (Local File Inclusion) and it’s being called recursively ... But it’s using os.join.path which is vulnerable to path traversal if there's an absolute path being used it will ignore the base path