🔍 CVE-2026-7795

6.4
CVSS Score
MEDIUM
2026-06-06
2026-07-23 07:10
✅ 완료

🇰🇷 한글 설명

WordPress의 Click to Chat – WA Widget 플러그인 4.38 이하 버전에서 저장형 XSS 취약점이 발견되었습니다. [chat] 숏코드의 'num' 파라미터 값이 JavaScript 문자열 내에 삽입될 때 적절한 이스케이프 처리가 되지 않아 발생하며, 공격자가 악성 스크립트를 삽입할 수 있습니다. 이를 통해 권한을 가진 공격자가 사용자의 브라우저에서 임의의 코드를 실행할 수 있습니다.

💡 쉬운 설명

채팅 버튼을 만드는 플러그인의 설정값에 악성 코드를 숨겨두면, 사용자가 버튼을 클릭할 때 그 코드가 몰래 실행되는 문제입니다. 이를 통해 해커가 사용자의 정보를 훔치거나 웹사이트를 조작할 수 있습니다.

🇺🇸 원문 (English)

The Click to Chat – WA Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [chat] shortcode 'num' parameter in all versions up to, and including, 4.38. This is due to insufficient escaping when embedding user-supplied shortcode attribute values inside JavaScript string literals that are then placed in HTML event-handler attributes. The CCW_Shortcode::shortcode() function applies esc_attr() to the 'num' parameter (line 157), which converts single quotes to the HTML entity '. This entity-encoded value is then interpolated directly into a JavaScript window.open() call string delimited by single quotes (line 194/221), and that complete string is placed verbatim into an HTML onclick attribute in the style template files (e.g., sc-style-1.php line 6). Because browsers HTML-decode event attribute values before executing the embedded JavaScript, the ' entities are decoded back to literal single quotes at runtime, allowing the injected payload to break out of the JavaScript string context and execute arbitrary code. This makes it possible for authenticated attackers with Contributor-level access and above to inject arbitrary web scripts into pages that will execute whenever a user clicks the WhatsApp chat button rendered by the [chat] shortcode.

📍 영향받는 시스템

Click to Chat – WA Widget plugin (WordPress) 4.38 및 그 이하 모든 버전

⚔️ 공격 벡터

Contributor 이상의 권한을 가진 공격자가 [chat] 숏코드의 'num' 파라미터에 악성 스크립트를 삽입하여 실행

🛡️ 대응 방법

플러그인을 최신 버전으로 업데이트하거나, 신뢰할 수 없는 사용자의 숏코드 편집 권한을 제한하십시오.

🔧 검증 코드

명령어 결과에 해당 플러그인이 나타나면 설치된 것이며, 설치된 버전이 4.38 이하인지 확인이 필요합니다.

Shell / Script
wp plugin list --status=active | grep -i 'click-to-chat'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

💻 영향받는 소프트웨어

WhatsApp