Cross Site Scripting (XSS) in Serenity
Date: 2023-04
Affected: nuget/Serenity.Net.Services, nuget/Serenity.Net.Core
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2023-31285
CWE: CWE-79
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

An XSS issue was discovered in Serenity Serene (and StartSharp) before 6.7.0. When users upload temporary files, some specific file endings are not allowed, but it is possible to upload .html or .htm files containing an XSS payload. The resulting link can be sent to an administrator user.


Mitigations:

Architectural layers (MAESTRO):