T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/send-postcard.mjs:98- Finding
Automatic Disclosure of Persona File Content to a Third-Party Service
- Content
View full analysis
!l.startsWith("#") && l.trim().length > 0) .slice(0, 10); const description = lines.join(" ").slice(0, 500).trim(); if (description.length < 20) { return "A friendly AI assistant with a distinctive personality"; } // Wrap it as a selfie prompt — the API will interpret this return `Based on this persona, generate a selfie of this character: ${description}`; } async function sendPostcard({ selfiePrompt, location, style, message }) { const url = "https://turai.org/api/agent/postcard"; const body = { selfiePrompt, location, style, ...(message && { message }), }; const res = await fetch(url, { method: "POST", headers: { "x-api-key": apiKey, "Content-Type": "application/json", Accept: "application/ ...[truncated 2064 chars]- Remediation
View remediation
