Markdown XSS leads to RCE in VNote version <=3.18.1
Severity : High (8.6)
CVSS score : CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Summary :
A Cross-Site Scripting (XSS) vulnerability was identified in the Markdown rendering functionality of the VNote note-taking application. This vulnerability allows the injection and execution of arbitrary JavaScript code, potentially leading to Remote Code Execution (RCE).
Steps to Reproduce :
- Create a note in Vnote.
- Enter the following JS payload in the app,
<img src="" onerror="alert('XSS') alt="alt text">
- Press CTRL+T to render the markdown content.
- Observe the JavaScript payload executing an alert popup.
There is no whitelisting or output encoding performed for the given payload, resulting in an XSS vulnerability.
NOTE: The application properly validates some JavaScript payloads by performing output encoding in the app. However, it fails to validate in certain cases.
- Further an attacker can achieve Remote Code execution using the following payload.
<iframe src="../../../../../../../../Windows/System32/cmd.exe" />
Affected Version Details :
Impact :
This vulnerability can be exploited by an attacker to gain unauthorized access to the system, execute arbitrary commands, and potentially take control of the affected machine. This could lead to system compromise and other severe security incidents.
Mitigation :
- Implement rigorous input sanitization for all Markdown content.
- Utilize a secure Markdown parser that appropriately escapes or strips potentially dangerous content.
References :
Markdown XSS leads to RCE in VNote version <=3.18.1
Severity : High (8.6)
CVSS score :
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Summary :
A Cross-Site Scripting (XSS) vulnerability was identified in the Markdown rendering functionality of the VNote note-taking application. This vulnerability allows the injection and execution of arbitrary JavaScript code, potentially leading to Remote Code Execution (RCE).
Steps to Reproduce :
There is no whitelisting or output encoding performed for the given payload, resulting in an XSS vulnerability.
Affected Version Details :
Impact :
This vulnerability can be exploited by an attacker to gain unauthorized access to the system, execute arbitrary commands, and potentially take control of the affected machine. This could lead to system compromise and other severe security incidents.
Mitigation :
References :