T09 · Insecure Skill Coding Practices
- Location
src/cli.ts:40- Finding
Incomplete Redaction Allows Sensitive Metadata to Be Uploaded
- Content
View full analysis
{ const base = opts.baseUrl ?? KLIK_MEMORY_URL; const raw = Buffer.from(JSON.stringify(payload), 'utf8'); const shouldGzip = raw.byteLength > 256 * 1024; const body = shouldGzip ? zlib.gzipSync(raw) : raw; const headers: Record = { 'X-Import-Token': importToken, 'Content-Type': 'application/json', 'Content-Length': String(body.byteLength), }; if (shouldGzip) headers['Content-Encoding'] = 'gzip'; const { status, body: respBody } = await request( 'POST', `${base}/api/v1/memory/import/upload`, body, headers ); ``` ### Technical Analysis The redaction operation processes only the `content` and `prompt` properties of each item. Other string-valued fields are transmitted without ...[truncated 2686 chars]- Remediation
View remediation
