Bug 2275989 (CVE-2024-27306) - CVE-2024-27306 aiohttp: XSS on index pages for static file handling
Summary: CVE-2024-27306 aiohttp: XSS on index pages for static file handling
Keywords:
Status: NEW
Alias: CVE-2024-27306
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2275992 2275990 2275991
Blocks: 2275987
TreeView+ depends on / blocked
 
Reported: 2024-04-18 20:28 UTC by Robb Gatica
Modified: 2024-04-26 20:38 UTC (History)
43 users (show)

Fixed In Version: aiohttp 3.9.4
Doc Type: ---
Doc Text:
A flaw was found in aiohttp, an asynchronous HTTP client/server framework for asyncio and Python. When using "web.static(..., show_index=True)", the resulting index pages do not escape file names. If users can upload files with arbitrary filenames to the static directory, the server is vulnerable to cross-site scripting (XSS) attacks.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Robb Gatica 2024-04-18 20:28:45 UTC
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. A XSS vulnerability exists on index pages for static file handling. This vulnerability is fixed in 3.9.4. We have always recommended using a reverse proxy server (e.g. nginx) for serving static files. Users following the recommendation are unaffected. Other users can disable `show_index` if unable to upgrade.

https://github.com/aio-libs/aiohttp/commit/28335525d1eac015a7e7584137678cbb6ff19397
https://github.com/aio-libs/aiohttp/pull/8319
https://github.com/aio-libs/aiohttp/security/advisories/GHSA-7gpw-8wmc-pm8g

Comment 1 Robb Gatica 2024-04-18 20:37:27 UTC
Created python-aiohttp tracking bugs for this issue:

Affects: epel-all [bug 2275990]
Affects: fedora-all [bug 2275991]


Note You need to log in before you can comment on or make changes to this bug.