Summary
A stored Cross-Site Scripting (XSS) vulnerability exists in the 1Panel App Store when viewing application details. Malicious scripts can execute in the context of the user’s browser, potentially compromising session data or sensitive system interfaces.
Impact
All versions of 1Panel up to and including v2.0.16 are affected. An attacker could publish a malicious application that, when loaded by users (locally or remotely), can execute arbitrary scripts. This may result in theft of user cookies, unauthorized access to system functions, or other actions that compromise the confidentiality, integrity, and availability of the system.
Details
The vulnerability is caused by insufficient sanitization of content rendered by the MdEditor component with the previewOnly attribute enabled. Specifically:
- The App Store renders application README content without proper XSS protection, allowing script execution during content rendering.
- Similar issues exist in system upgrade-related components, which can be fixed by implementing proper XSS sanitization in the MdEditor component.
These vulnerabilities can be mitigated by applying proper XSS protection and sanitization when rendering content in the MdEditor component.
Patches
Safe versions: v1.10.34-lts v2.0.17
Summary
A stored Cross-Site Scripting (XSS) vulnerability exists in the 1Panel App Store when viewing application details. Malicious scripts can execute in the context of the user’s browser, potentially compromising session data or sensitive system interfaces.
Impact
All versions of 1Panel up to and including v2.0.16 are affected. An attacker could publish a malicious application that, when loaded by users (locally or remotely), can execute arbitrary scripts. This may result in theft of user cookies, unauthorized access to system functions, or other actions that compromise the confidentiality, integrity, and availability of the system.
Details
The vulnerability is caused by insufficient sanitization of content rendered by the MdEditor component with the
previewOnlyattribute enabled. Specifically:These vulnerabilities can be mitigated by applying proper XSS protection and sanitization when rendering content in the MdEditor component.
Patches
Safe versions: v1.10.34-lts v2.0.17