T09 · Insecure Skill Coding Practices
- Location
openmemo_clawhub_skill/config.py:19- Finding
Bypassable Localhost Validation Allows Sensitive Memory Data to Be Sent to Remote Servers
- Content
View full analysis
bool: return any(endpoint.startswith(p) for p in LOCALHOST_PREFIXES) ``` The accepted endpoint is used directly by the request helper: ```python def _post(endpoint: str, path: str, payload: dict, timeout: int = 10) -> dict: try: resp = requests.post(f"{endpoint}{path}", json=payload, timeout=timeout) resp.raise_for_status() return resp.json() except requests.ConnectionError: return {"error": "OpenMemo adapter not reachable", "endpoint": endpoint} except requests.HTTPError as e: return {"error": f"HTTP error: {e.response.status_code}", "detail": str(e)} except Exception as e: return {"error": str(e)} ``` Potentially sensitive ...[truncated 3805 chars]- Remediation
View remediation
