baoyu-post-to-x
Audited by Socket on Oct 26, 2026
2 alerts found:
Securityx2This module is a dual-use cross-platform keystroke injection utility that performs a real paste (Cmd+V/Ctrl+V equivalents) to the active/frontmost application and explicitly aims to bypass synthetic paste-event detection. No network exfiltration or persistence is present in the provided code, but the behavior is inherently security-sensitive (UI input automation) and can be abused for clipboard-driven attacks. The highest concrete technical risk is on macOS: user-supplied --app is interpolated into dynamically constructed AppleScript executed via osascript without escaping/validation, creating an AppleScript-evaluation injection risk. Overall: elevated security risk; treat as high-impact automation code and restrict/validate inputs when used.
No clear evidence of deliberate malware/backdoor behavior in this module. However, it is security-sensitive: it downloads arbitrary attacker-controlled HTTP(S) URLs (including redirects) and writes the responses to disk, creating an SSRF/uncontrolled egress risk. Separately, its Markdown-to-HTML conversion performs insufficient escaping and inserts unvalidated link href values directly into HTML, creating a high XSS/HTML-injection risk if the resulting HTML is rendered or served without robust sanitization at a higher layer.