| 제목 | HumHub HumHub core Friendship module 1.18.6 (Friendship module enabled) Cross-Site Scripting |
|---|
| 설명 | HumHub 1.18.6 contains stored cross-site scripting in the optional core Friendship module. FriendshipButton builds a data-action-confirm attribute with an unencoded user display name. An authenticated user can store a crafted profile name that injects HTML into the confirmation UI when another user visits the attacker's profile. The module is disabled by default but is part of the core distribution.
Affected flow: profile displayName -> FriendshipButton data-action-confirm -> confirmation modal HTML. Attack prerequisites: Friendship module enabled; authenticated attacker; victim visits the attacker's profile and opens the friendship action.
Reproduction: (1) Enable the core Friendship module. (2) Store an HTML marker in the attacker's profile display name. (3) Visit the profile as another user and open the friendship confirmation.
Fresh verification marker: gt481023h1rc. Three fresh runs succeeded. In run 3, the database contained the raw marker, the decoded confirmation contained a real IMG node, and the browser confirmed the modal IMG existed. Sanitized trigger: Would you like to send a friendship request to <strong><img id=gt481023h1rc src=x onerror=self.x=1></strong>?
Confirmed source/sink in protected/humhub/modules/friendship/widgets/FriendshipButton.php lines 123-126:
'data-action-confirm' => Yii::t('FriendshipModule.base', 'Would you like to send a friendship request to {userName}?', ['{userName}' => '<strong>' . $this->user->getDisplayName() . '</strong>']).
The test deployment adds nonce-CSP, which may block the inline handler while the injected modal DOM remains confirmed. Stock HumHub 1.18.6 does not add this deployment-specific protection by default. CWE-79. CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (5.4). |
|---|
| 원천 | ⚠️ https://github.com/humhub/humhub/blob/v1.18.6/protected/humhub/modules/friendship/widgets/FriendshipButton.php |
|---|
| 사용자 | sanktsimone (UID 102457) |
|---|
| 제출 | 2026. 10. 24. AM 06:11 (1 월 ago) |
|---|
| 모더레이션 | 2026. 11. 23. AM 07:43 (1 month later) |
|---|
| 상태 | 중복 |
|---|
| VulDB 항목 | 430868 [HumHub Community Edition 까지 1.18.6/1.19.0 Friendship Confirmation Dialog jQuery.html 크로스 사이트 스크립팅] |
|---|
| 포인트들 | 0 |
|---|