Modification of faisalfs10x exploit: PoC of CVE-2019-14322: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- https://www.acunetix.com/vulnerabilities/web/odoo-lfi-cve-2019-14322/
- https://nvd.nist.gov/vuln/detail/CVE-2019-14322
-
A vulnerability was found in Pallets Werkzeug up to 0.15.4. It has been declared as critical. This vulnerability affects the function SharedDataMiddleware of the component Windows. The manipulation with an unknown input leads to a directory traversal vulnerability. The CWE definition for the vulnerability is CWE-22
-
In Pallets Werkzeug before 0.15.5, SharedDataMiddleware mishandles drive names (such as C:) in Windows pathnames.
-
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
-
It also affects "Odoo", a suite of business management software and it uses Pallets Werkzeug as a core component. Therefore, Odoo is vulnerable to local file inclusion vulnerability inherited from Werkzeug.
This script reads a few windows directories as a proof of concept.
python3 CVE-2019-14322.py -l list_target.txt
Or uses a wordlist instead of using the default directories.
python3 CVE-2019-14322.py -l list_target.txt -w wordlist.txt
The script is for security analysis and research only, hence I would not be liable if it is been used for illicit activities.