OpenC3 COSMOS is Vulnerable to Self-XSS Through the Command Sender
The Command Sender UI uses an unsafe eval() function on array-like command parameters, which allows a user-supplied payload to execute in the browser when sending a command. This creates a self-XSS risk because an attacker can trigger their own script execution in the victim’s session, if allowed to influence the array parameter input, for example via phishing. If successful, an attacker may read or modify data in the authenticated browser context, including session tokens in local storage.
The unsafe eval() usage on user-supplied ARRAY parameters happens in convertToValue method in CommandSender.vue
Below example uses INST ARYCMD to execute simple JavaScript code snippet alert(“XSS”).
Local JavaScript execution in the user's browser
왜 이 VPI인가 (설명가능 · 실험적)
VPI 산정 기준
| 영향도 | 46.00 |
| 악용 신호(추가 악용신호 없음) | ×1.00 |
| VPI | 46.00 |
VPI 공식 vpi-v1 기준