개요
이 취약점이 무엇인지
Saleor is an e-commerce platform. Starting in version 3.0.0 and prior to versions 3.20.108, 3.21.43, and 3.22.27, Saleor allowed authenticated staff users or Apps to upload arbitrary files, including malicious HTML and SVG files containing Javascript. Depending on the deployment strategy, these files may be served from the same domain as the dashboard without any restrictions leading to the execution of malicious scripts in the context of the user's browser. Malicious staff members could craft script injections to target other staff members, possibly stealing their access and/or refresh tokens. Users are vulnerable if they host the media files inside the same domain as the dashboard, e.g., dashboard is at `example.com/dashboard/` and media are under `example.com/media/`. They are not impact if media files are hosted in a different domain, e.g., `media.example.com`. Users are impacted if they do not return a `Content-Disposition: attachment` header for the media files. Saleor Cloud users are not impacted. This issue has been patched in versions: 3.22.27, 3.21.43, and 3.20.108. Some workarounds are available for those unable to upgrade. Configure the servers hosting the media files (e.g., CDN or reverse proxy) to return the Content-Disposition: attachment header. This instructs browsers to download the file instead of rendering them in the browser. Prevent the servers from returning HTML and SVG files. Set-up a `Content-Security-Policy` for media files, such as `Content-Security-Policy: default-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'none';`.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| saleorsaleor | 3.0.0 | ≤ | 취약 | < | 3.20.108 | 3.20.108이상 |
| 3.21.0 | ≤ | 취약 | < | 3.21.43 | 3.21.43이상 | |
| 3.22.0 | ≤ | 취약 | < | 3.22.27 | 3.22.27이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 3줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| saleorsaleor | 이 버전만 | 취약 | = | >= 3.2.0, < 3.22.27 | 벤더 공지 확인 | |
| 이 버전만 | 취약 | = | >= 3.1.0, < 3.21.43 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 3.0.0, < 3.20.108 | 벤더 공지 확인 | ||
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치5
- github.com/saleor/saleor/commit/77f7927a0db9a216440df92c51012136f13e1d99
- github.com/saleor/saleor/commit/7d33efc7a06252320cd51cbb20c2e308aed2fd10
- github.com/saleor/saleor/commit/9110eba68c3f73afa1f72b45bd9b1394c752d335
- github.com/saleor/saleor/commit/ac6936a336289c77398ef600cad3498ad4ba261c
- github.com/saleor/saleor/commit/b3cb27b3fe96dae3c879063e56d32a9398eabd24