SnipCommand Cross-Site Scripting Vulnerability Allowing Remote Code Execution
Vulnerability
A cross-site scripting vulnerability has been identified in SnipCommand version 0.1.0. This issue allows attackers to inject malicious JavaScript into command snippets, which can then be executed, leading to arbitrary code execution. The vulnerability arises from the application's handling of file and title inputs, where embedded scripts can be executed remotely.
Impact
Exploitation of this vulnerability allows for cross-site scripting, with the injected script executing in the context of the user.
Reproduction
To reproduce this vulnerability, inject a malicious JavaScript payload into the title or file input of a command snippet. Once the snippet is saved, the payload will execute automatically when the snippet is accessed. This can be done by sending a file containing the payload, which will be executed upon opening the file in the application.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
