Katalog CVE

CVE-2026-54615

ŚrednieCVSS 6.0
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W Part-DB, systemie zarządzania inwentarzem komponentów elektronicznych, w wersjach przed 2.12.1 występuje podatność typu stored XSS. Klasa LogEntryExtraFormatter w gałęzi CollectionElementDeleted wstawia nazwę usuniętego pod-elementu (getOldName(), getCollectionName()) do HTML bez użycia htmlspecialchars(), co pozwala użytkownikowi z niskimi uprawnieniami zapisać złośliwy kod HTML/JS jako nazwę pod-elementu, a następnie wywołać jego wykonanie w przeglądarce administratora lub audytora przeglądającego dziennik aktywności lub historię elementu.

Ocena ryzyka

Użytkownik z uprawnieniami edycji treści może wykonać atak XSS w kontekście sesji uprzywilejowanego administratora lub audytora, co może prowadzić do przejęcia konta, kradzieży danych lub wykonania nieautoryzowanych działań w systemie. Polityki CSP blokują wykonywanie inline JavaScript w normalnych warunkach, co ogranicza, ale nie eliminuje ryzyka.

Rekomendacja

Zaktualizuj Part-DB do wersji 2.12.1 lub nowszej, która zawiera poprawkę. Do czasu aktualizacji rozważ ograniczenie uprawnień edycji treści oraz weryfikację polityk CSP.

Inne podatności w Part-DB

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

Part-DB is an open source inventory management system for electronic components. Prior to version 2.12.1, LogEntryExtraFormatter builds the HTML shown in the "Extra" column of the activity-log table (/log) and in element history tables. Every branch of LogEntryExtraFormatter::getInternalFormat() runs user-controlled strings through htmlspecialchars() before placing them into the HTML it returns — except the CollectionElementDeleted branch, which interpolates getOldName() (and getCollectionName()) into a sprintf() template with no escaping. The returned string is emitted by LogEntryExtraColumn::render() and inserted as raw HTML into the DataTables cell (the bundle does not escape column output; sibling columns call htmlspecialchars() themselves). CollectionElementDeleted.getOldName() is the name of a deleted collection sub-element — a part Parameter, Attachment, PartLot, Orderdetail, etc. — all freely set by any user with edit rights on the owning element. A low-privileged content editor can therefore store an HTML/script payload as the name of such a sub-element, delete it (which writes the log entry), and have that markup parsed as live DOM in the browser of a higher-privileged victim (an administrator/auditor with system.show_logs, or any user viewing that element's history). This is a stored cross-site-scripting / HTML-injection defect caused by a single missed sanitizer in one sibling branch. CSP policies block inline javascript execution under normal conditions. This issue has been patched in version 2.12.1.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS