Back to skill

Security audit

Yuboto Omni API Assistant

Security checks for vulnerabilities and agentic risk

Overview

This skill mostly matches its Yuboto messaging purpose, but it has credential-handling and local data-storage risks users should review before installing.

Install only if you are comfortable giving the skill access to a Yuboto/Octapush key that can send paid messages. Use the default https://api.yuboto.com endpoint, avoid custom base URLs unless using separate test credentials, keep local state/log directories private, and leave full-payload persistence disabled unless you explicitly need it.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/yuboto_client.py:42
Finding
API Credential Disclosure Through an Unrestricted Base URL<![CDATA[ ## Vulnerability Details **File Location**: `scripts/yuboto_client.py:42-46, 61-75`; `scripts/yuboto_cli.py:191-196, 495` **Vulnerability Type**: Unrestricted credential-bearing outbound request **Risk Level**: High ### Vulnerable Code ```python class YubotoClient: def __init__(self, config: YubotoConfig): self.config = config self.headers = { "Accept": "application/json", "Content-Type": "application/json", "Authorization": self._build_auth_header(config.api_key), } ``` ```python def _url(self, path: str) -> str: return self.config.base_url.rstrip("/") + path def _request( self, method: str, path: str, *, params: Optional[Dict[str, Any]] = None, json_body: Optional[Dict[str, Any]] = None, ) -> Any: url = self._url(path) if params: qs = urllib.parse.urlencode({k: v for k, v in params.items() if v is not None}) if qs: url = f"{url}?{qs}" data = None if json_body is not None: data = json.dumps(json_body, ensure_ascii=False).encode("utf-8") req = urllib.request.Request( url=url, data=data, headers=self.headers, method=method.upper(), ) ``` ```python def build_client(args): api_key = args.api_key or os.getenv("OCTAPUSH_API_KEY") if not api_key: print("ERROR: missing API key. Use --api-key or OCTAPUSH_API_KEY env var.", file=sys.stderr) sys.exit(2) cfg = YubotoConfig( api_key=api_key, base_url=args.base_url, timeout=args.timeout, ) return YubotoClient(cfg) ``` ```python ap.add_argument("--base-url", default="https://api.yuboto.com") ``` ### Technical Analysis The CLI accepts an unrestricted `--base-url` value and passes it directly into `YubotoConfig`. The client then constructs every request from that value while unconditionally attaching the API credential as an `Authorization` header. No validation requi ...[truncated 1841 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Require the base URL to use HTTPS: - Parse it with `urllib.parse.urlsplit`. - Reject every scheme other than `https`. - Reject embedded credentials, fragments, and malformed hostnames. 2. Apply an exact hostname allowlist: - Permit `api.yuboto.com` by default. - Do not use suffix-only checks that could accept domains such as `api.yuboto.com.attacker.example`. 3. If custom endpoints are required for testing: - Require an explicit flag such as `--allow-unsafe-custom-base-url`. - Display a prominent warning before attaching credentials. - Prefer separate test credentials with restricted privileges. - Never permit production credentials over cleartext HTTP. 4. Implement redirect controls: - Reject redirects to a different origin. - Ensure the `Authorization` header is never forwarded across host or scheme boundaries. 5. Add automated tests verifying rejection of: - HTTP URLs. - Attacker-controlled domains. - Look-alike domains. - URLs containing user information. - Cross-origin redirects. ]]>

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/yuboto_cli.py:63
Finding
Sensitive State and Polling Logs Are Created Without Enforced Owner-Only Permissions<![CDATA[ ## Vulnerability Details **File Location**: `scripts/yuboto_cli.py:63-66, 79-83, 203-231, 399-425`; `scripts/poll_pending.sh:7-9, 21-26` **Vulnerability Type**: Insecure storage permissions for messaging data **Risk Level**: Medium ### Vulnerable Code ```python def _safe_write_json(path: Path, data: Any): path.parent.mkdir(parents=True, exist_ok=True) tmp = path.with_suffix(path.suffix + ".tmp") tmp.write_text( json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8", ) tmp.replace(path) ``` ```python def _append_sent(state_dir: Path, row: Dict[str, Any]): paths = _state_paths(state_dir) paths["sent"].parent.mkdir(parents=True, exist_ok=True) with paths["sent"].open("a", encoding="utf-8") as f: f.write(json.dumps(row, ensure_ascii=False) + "\n") ``` ```python if YUBOTO_STORE_FULL_PAYLOAD: send_log.update({ "recipients": recipients, "sender": sender, "textPreview": text[:140], "callbackUrl": callback_url, "response": payload, }) ``` ```python if YUBOTO_STORE_FULL_PAYLOAD: row["lastDlrPayload"] = dlr_payload ``` ```bash STATE_BASE="${YUBOTO_STATE_DIR:-${XDG_STATE_HOME:-$HOME/.local/state}/openclaw/yuboto-omni-api}" LOG_DIR="${YUBOTO_LOG_DIR:-$STATE_BASE/logs}" STATE_DIR="$STATE_BASE/state" mkdir -p "$LOG_DIR" "$STATE_DIR" ``` ```bash { echo "[$TS] poll-pending START" python3 "$BASE_DIR/scripts/yuboto_cli.py" --state-dir "$STATE_DIR" poll-pending echo "[$TS] poll-pending END" } | tee -a "$LOG_FILE" ``` ### Technical Analysis The Python code creates state directories and files using default process permissions. The shell helper similarly uses `mkdir -p` and `tee -a` without first setting a restrictive umask or explicitly applying owner-only modes. Actual permissions therefore depend on the caller’s environment. Under a permissive umask or an externally configured shared state directory, generated files may be readable by other ...[truncated 1831 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Enforce owner-only directory permissions: - Create state and log directories with mode `0700`. - Verify existing directories are owned by the expected account and are not group- or world-accessible. 2. Enforce owner-only file permissions: - Create state, temporary, and log files with mode `0600`. - Use `os.open` with explicit flags and modes where reliable exclusive creation is required. - Apply `chmod(0o600)` to pre-existing files before writing sensitive content. 3. Set a restrictive shell umask before creating files: ```bash umask 077 mkdir -p "$LOG_DIR" "$STATE_DIR" ``` 4. Harden temporary-file replacement: - Verify the parent directory is trusted and owner-controlled. - Avoid following attacker-controlled symbolic links. - Use secure temporary-file APIs with exclusive creation in the destination directory. 5. Reduce logged data: - Log only aggregate polling status by default. - Redact phone numbers, message contents, callback URLs, and complete API payloads. - Require an explicit warning or confirmation before enabling `YUBOTO_STORE_FULL_PAYLOAD`. 6. Add startup permission checks that fail closed when configured state or log paths are shared, unexpectedly owned, symbolic links, or broadly readable. ]]>
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (57)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding
The skill claims broad Yuboto Omni API support, including Viber, callbacks, lists, contacts, and blacklist operations, but the documented commands are largely SMS-centric and include undeclared local persistence. Overstating coverage while under-disclosing concrete runtime behavior can cause unsafe reliance, incorrect integrations, and unnoticed handling of sensitive messaging metadata on disk.

Tp4

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding
The skill claims broad Yuboto Omni API support, including Viber, callbacks, lists, contacts, and blacklist operations, but the documented commands are largely SMS-centric and include undeclared local persistence. Overstating coverage while under-disclosing concrete runtime behavior can cause unsafe reliance, incorrect integrations, and unnoticed handling of sensitive messaging metadata on disk.

Ae1

High
Category
analysis-evasion
Content
1. `references/swagger_v1.json` (live endpoint contract)
Confidence
100% confidence
Finding
Referenced artifact was not completely inspected

Ae1

High
Category
analysis-evasion
Content
1. `references/swagger_v1.json` (live endpoint contract)
Confidence
100% confidence
Finding
Referenced artifact was not completely inspected

Credential Access

High
Category
Privilege Escalation
Content
14.10 Generate Form Short Url .............................................................................................................................. 88 
14.11 Get Form Short Url ....................................................................................................................................... 90 
15. Single Sign-On (SSO) ............................................................................................................................................. 92 
11.1 Get Access token and Refresh token using username and password ............................................................ 92 
11.1 Get Access token and Refresh token using a refresh token ........................................................................... 93 
16. Error Codes ........................................................................................................................................................... 95
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
14.10 Generate Form Short Url .............................................................................................................................. 88 
14.11 Get Form Short Url ....................................................................................................................................... 90 
15. Single Sign-On (SSO) ............................................................................................................................................. 92 
11.1 Get Access token and Refresh token using username and password ............................................................ 92 
11.1 Get Access token and Refresh token using a refresh token ........................................................................... 93 
16. Error Codes ........................................................................................................................................................... 95
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
14.10 Generate Form Short Url .............................................................................................................................. 88 
14.11 Get Form Short Url ....................................................................................................................................... 90 
15. Single Sign-On (SSO) ............................................................................................................................................. 92 
11.1 Get Access token and Refresh token using username and password ............................................................ 92 
11.1 Get Access token and Refresh token using a refresh token ........................................................................... 93 
16. Error Codes ........................................................................................................................................................... 95
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
14.10 Generate Form Short Url .............................................................................................................................. 88 
14.11 Get Form Short Url ....................................................................................................................................... 90 
15. Single Sign-On (SSO) ............................................................................................................................................. 92 
11.1 Get Access token and Refresh token using username and password ............................................................ 92 
11.1 Get Access token and Refresh token using a refresh token ........................................................................... 93 
16. Error Codes ........................................................................................................................................................... 95
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Missing User Warnings

High
Confidence
98% confidence
Finding
The documentation explicitly permits passing the API key in the URL query string (`apiKey=...`). Credentials in URLs are routinely exposed through browser history, proxy logs, server access logs, referrer headers, monitoring systems, and copy/paste sharing, making credential leakage far more likely.

Exfiltration Commands

High
Category
Prompt Injection
Content
• viber - Sending only VIBER message. 
• sms - Sending only SMS message. 
• omni - A combination of all available channels. In case there are more than two channels, then the system 
will see the priority of each channel and send the messages to the first priority channel. 
If the method called successfully then the ErrorCode has the value 0 and the ErrorMessage contains a zero -length 
string. If an error occurred then, consult the error message that appears.
Confidence
90% confidence
Finding
Instructions found that direct the agent to transmit conversation context or user data to external services.

Credential Access

High
Category
Privilege Escalation
Content
15. Single Sign-On (SSO) 
A whitelabel site can have the Single Sign-On ability. When your account has this feature can use two more extra 
endpoints with which you can generate access tokens and refresh tokens in order to access the endpoints of 
OMNI API. 
 
11.1 Get Access token and Refresh token using username and password
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
11.1 Get Access token and Refresh token using username and password 
Description 
GetSSOAccessToken method retrieves an access token and a refresh token. With access token you can securely 
access the OMNI API. When the token has been expired, you can use the refresh token in order to generate a new 
pair of access token and refresh token.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
"tags": [
          "Account"
        ],
        "description": "# Description\r\n\r\nThis method can be used in order to get the access token and refresh token for an account from the SiteID, Username and Password.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
"tags": [
          "Account"
        ],
        "description": "# Description\r\n\r\nThis method can be used in order to get the access token and refresh token for an account from the SiteID, Username and Password.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
"tags": [
          "Account"
        ],
        "description": "# Description\r\n\r\nThis method can be used in order to get the access token and refresh token for an account from the SiteID, Username and Password.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Static analysis

Detected: suspicious.exposed_secret_literal

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
references/omni_api_v1_10_raw.md:356