🇰🇷 한글 설명
@dapperduckling/keycloak-connector-server의 인증 흐름에서 URL 파라미터가 제대로 살균되지 않아 반사형 XSS 취약점이 발생합니다. 공격자가 악의적인 URL을 제작하여 피해자가 클릭하도록 유도하면 브라우저에서 임의의 자바스크립트가 실행됩니다. 버전 2.5.5 이상으로 업그레이드하면 해결됩니다.
💡 쉬운 설명
로그인 라이브러리의 주소창 입력값이 검사되지 않아 나쁜 코드가 실행될 수 있습니다. 링크를 클릭하는 사용자가 해킹될 위험이 있으므로 서둘러 업데이트해야 합니다.
🇺🇸 원문 (English)
@dapperduckling/keycloak-connector-server is an opinionated series of libraries for Node.js applications and frontend clients to interface with keycloak. A Reflected Cross-Site Scripting (XSS) vulnerability was discovered in the authentication flow of the application. This issue arises due to improper sanitization of the URL parameters, allowing the URL bar's contents to be injected and reflected into the HTML page. An attacker could craft a malicious URL to execute arbitrary JavaScript in the browser of a victim who visits the link. Any application utilizing this authentication library is vulnerable. Users of the application are at risk if they can be lured into clicking on a crafted malicious link. The vulnerability has been patched in version 2.5.5 by ensuring proper sanitization and escaping of user input in the affected URL parameters. Users are strongly encouraged to upgrade. If upgrading is not immediately possible, users can implement the following workarounds: 1. Employ a Web Application Firewall (WAF) to block malicious requests containing suspicious URL parameters. or 2. Apply input validation and escaping directly within the application’s middleware or reverse proxy layer, specifically targeting the affected parameters.
📍 영향받는 시스템
@dapperduckling/keycloak-connector-server < 2.5.5
⚔️ 공격 벡터
악의적으로 조작된 URL을 통해 URL 파라미터에 자바스크립트 코드를 주입하고 피해자가 해당 링크를 클릭하도록 유도
🛡️ 대응 방법
즉시 @dapperduckling/keycloak-connector-server을 2.5.5 이상으로 업그레이드하거나 WAF/미들웨어에서 URL 파라미터 검증 강화
🔧 검증 코드
출력된 버전이 2.5.5 이상이면 안전하고, 2.5.5 미만이면 업그레이드 필요
npm ls @dapperduckling/keycloak-connector-server 2>/dev/null | grep -E 'keycloak-connector-server@'