photo-editor
Audited by Socket on Jun 13, 2026
2 alerts found:
Anomalyx2This Bash wrapper appears to be a legitimate orchestration layer for an image/prompt pipeline, with no direct indicators of malware (no obfuscation, hardcoded secrets, or destructive/system-modifying behavior). The primary security risk in this fragment is privacy/exfiltration and/or unintended network callback behavior: it base64-encodes user/local image content and forwards it (plus prompt and reference images) to backend endpoints via run.sh, and it embeds a hook_url into the request body without validation shown here. Review common.sh and run.sh for network allowlisting, authentication/authorization, hook_url validation, and robust input/output sanitization to reduce supply-chain and data-leak risk.
This is a client-side wrapper that forwards a base64-encoded user image and metadata (template/model/aspect, optional prompt) to a backend endpoint via run.sh. There are no overt malware/backdoor indicators in the visible snippet, but the script imports and relies on common.sh and run.sh for validation and all network behavior. The inclusion of a configurable hook_url in the request body increases potential risk if the backend uses it without strict allowlisting. Overall: moderate supply-chain/security risk largely due to delegated trust and callback propagation, not because the fragment itself shows explicit malicious logic.