जमा करें #1055274: HumHub HumHub core Friendship module 1.18.6 (Friendship module enabled) Cross-Site Scriptingजानकारी

शीर्षक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)
सबमिशन24/10/2026 06:11 AM (1 महीना पहले)
संयम23/11/2026 07:43 AM (1 month later)
स्थितिप्रतिलिपि
VulDB प्रविष्टि430868 [HumHub Community Edition तक 1.18.6/1.19.0 Friendship Confirmation Dialog jQuery.html क्रॉस साइट स्क्रिप्टिंग]
अंक0

Do you want to use VulDB in your project?

Use the official API to access entries easily!