🇰🇷 한글 설명
Shopware 6.7.3.0부터 6.7.10.0 버전의 공개 SSO 엔드포인트(/api/oauth/sso/auth)에서 오픈 리다이렉트 취약점이 발견되었습니다. 공격자가 Referer 헤더를 조작하여 사용자를 악성 사이트로 유도하거나 javascript: 스킴을 이용한 XSS 공격을 수행할 수 있습니다.
💡 쉬운 설명
웹사이트의 로그인 페이지가 사용자를 엉뚱한 가짜 사이트로 자동으로 보내버릴 수 있는 보안 결함입니다. 이를 통해 해커는 사용자의 정보를 훔치거나 악성 코드를 실행하는 피싱 공격을 시도할 수 있습니다.
🇺🇸 원문 (English)
Shopware is an open commerce platform. Versions 6.7.3.0 through 6.7.10.0 have an open redirect in Shopware's public SSO entry point at `GET /api/oauth/sso/auth`. When the endpoint is reached without the expected SSO session state, the application falls back to the request's `Referer` header and uses that value as the redirect destination. In the validated behavior, the server does not restrict that fallback target to same-origin URLs, does not require a relative path, and does not reject dangerous schemes such as `javascript:`. As a result, an unauthenticated request can turn this endpoint into a reusable redirect primitive whose destination is fully controlled by attacker-supplied request metadata. The security problem is not limited to a harmless navigation mismatch. The endpoint sits under `/api/oauth/`, which gives the redirect a trustworthy application-controlled origin and makes it suitable for phishing chains, branded redirect abuse, and cases where client software automatically follows redirects issued by a trusted host. The attached evidence also shows that the response is not only an HTTP `302` with a user-controlled `Location` header. The HTML body contains a matching meta refresh tag and redirect link built from the same attacker-controlled value. In the validated proof, the endpoint redirects to `https://attacker.example/poc` when that URL is supplied through `Referer`, and it also reflects `javascript:alert(1)` into `Location` and the HTML redirect body without any scheme filtering. This report therefore stays conservative and claims an open redirect with arbitrary redirect targets, while noting that the lack of scheme restrictions makes the behavior materially worse than a same-scheme external redirect. Version 6.7.10.1 fixes the issue.
📍 영향받는 시스템
Shopware 6.7.3.0 ~ 6.7.10.0
⚔️ 공격 벡터
조작된 Referer 헤더를 포함한 GET 요청을 통해 공격자가 지정한 외부 URL 또는 자바스크립트로 리다이렉트 유도
🛡️ 대응 방법
Shopware를 최신 보안 패치가 적용된 버전인 6.7.10.1 이상으로 업데이트하십시오.
🔧 검증 코드
응답 헤더의 Location 값이 입력한 attacker.com으로 리다이렉트되면 취약한 상태입니다.
curl -I -H 'Referer: https://attacker.com' https://<target-domain>/api/oauth/sso/auth 2>/dev/null | grep -i 'Location:'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
💻 영향받는 소프트웨어
IBM WebSphere Application Server