CVE-2024-23334 aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal
aiohttp.web.static(follow_symlinks=True) 디렉토리 순회에 취약합니다.
설명
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.
aiohttp는 asyncio와 Python을 위한 비동기 HTTP 클라이언트/서버 프레임워크입니다. aiohttp를 웹 서버로 사용하고 정적 경로를 구성하는 경우 정적 파일의 루트 경로를 지정해야합니다. 또한 'follow_symlinks'옵션을 사용하여 정적 루트 디렉토리 외부의 심볼릭 링크를 따를지 여부를 결정할 수 있습니다. 'follow_symlinks'가 True로 설정되면 파일을 읽는 것이 루트 디렉토리에 있는지 확인하는 유효성 검사가 없습니다. 이로 인해 디렉터리 트래버설 취약점이 발생할 수 있으며, 시스템 상의 임의의 파일에 대한 무단 액세스가 발생할 수 있으며, 이는 심볼링크가 존재하지 않을 때도 마찬가지입니다. follow_symlinks를 비활성화하고 역방향 프록시를 사용하는 것은 완화를 권장한다. 버전 3.9.2는 이 문제를 해결합니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
aio-libs
aiohttp
영향 받는 버전
- 3.9.2 미만
해결 버전
- 3.9.2 이상
참고 자료 5건
- github.com https://github.com/aio-libs/aiohttp/commit/1c335944d6a8b1298baf179b7c0b3069f10c514b (새 창)
- github.com https://github.com/aio-libs/aiohttp/pull/8079 (새 창)
- github.com https://github.com/aio-libs/aiohttp/security/advisories/GHSA-5h86-8mv2-jq9f (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ICUOCFGTB25WUT336BZ4UNYLSZOUVKBD/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXWVZIVAYWEBHNRIILZVB3R3SDQNNAA7/ (새 창)