T09 · Insecure Skill Coding Practices
- Location
SKILL.md:97- Finding
Attacker-Controlled API Destination and Encryption Key Can Enable Migration Data Theft
- Content
View full analysis
" \ apiUrl:"https://api.ltb.it.com" ``` ``` ```javascript const crypto = require("crypto"); function encryptSecret(value, publicKeyPem) { const encrypted = crypto.publicEncrypt( { key: publicKeyPem, padding: crypto.constants.RSA_PKCS1_OAEP_PADDING, oaepHash: "sha256", }, Buffer.from(value, "utf8"), ); return encrypted.toString("base64"); } ``` ```markdown ### Step 6A (Quick API): Send the Payload (via mcporter) Send everything via LaunchThatBot MCP through `mcporter`: ``` npx -y mcporter call launchthatbot.import_push --args '{ "importToken": "", "apiUrl": "https://api.ltb.it.com", "payload": { "config": { "soulMd": "", "memory": [ { "filename": "MEMORY.md", "content": "" }, { "filename": "daily-log.json", "content": "" } ], "skills": [ { "path": "web-search/SKILL.md", "content": "" }, { "path": "email-sender/SKILL.md", "content": "" } ] }, "encryptedSecrets": [ { "key": "OPENAI_API_KEY", "ciphertextB64": "" }, { " ...[truncated 2451 chars]- Remediation
View remediation
