| tiêu đề | KeudellCoding HumHub User Location Map module 1.2.5 Cross-Site Scripting |
|---|
| Mô tả | HumHub User Location Map 1.2.5 contains stored cross-site scripting in map popups. User profile display names are serialized into the page and concatenated into a Leaflet bindPopup HTML string without HTML encoding. An authenticated user can store a crafted name that becomes executable markup when another user opens the map popup.
Affected flow: profile displayName -> json_encode(user_data) -> Leaflet bindPopup HTML -> innerHTML. Attack prerequisites: authenticated attacker with a mappable profile location; victim opens the user map popup.
Reproduction: (1) Store an HTML marker in the attacker's profile name and set valid map coordinates. (2) Open the user map as another user. (3) Click the attacker's marker and inspect the Leaflet popup DOM.
Fresh verification markers across three runs included gt481023h2sa, gt481023h2ua, and gt481023h2ta. The saved page serialized the exact displayName markup; the same value was present in the database and reached the Leaflet popup HTML string. Sanitized run-3 trigger: displayname: <img id=gt481023h2ta src=x onerror=self.x=2>; address: 10001 https://gt481023h2ta.example.
Confirmed source/sink in widgets/views/mapView.php lines 42-47:
var allUsers = <?= json_encode($user_data); ?>;
$.each(allUsers, function(i, user) {
var marker = L.marker([user.coords.latitude, user.coords.longitude]);
marker.bindPopup('<a href="' + user.profileurl + '"><b>' + user.displayname + '</b></a><br/>' + user.formatedaddress + '<br/>');
});
All three fresh runs confirmed database persistence and unencoded HTML insertion. The test deployment adds nonce-CSP; stock module deployments may not have the same CSP header. CWE-79. CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (5.4). |
|---|
| Nguồn | ⚠️ https://github.com/KeudellCoding/HumHub-Modules-UserMap/blob/master/widgets/views/mapView.php |
|---|
| Người dùng | sanktsimone (UID 102457) |
|---|
| Đệ trình | 24/10/2026 06:13 (cách đây 1 tháng) |
|---|
| Kiểm duyệt | 23/11/2026 11:23 (1 month later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 442278 [KeudellCoding User Location Map đến 1.2.5 MapView Widget humhub.usermap.js displayname Tập lệnh chéo trang] |
|---|
| điểm | 20 |
|---|