T09 · Insecure Skill Coding Practices
- Location
scripts/request-reviews.js:53- Finding
Undisclosed Automatic Transmission of Amazon Order Metadata to a Configurable Supabase Endpoint
- Content
View full analysis
{ const body = JSON.stringify(row); const req = require('https').request({ hostname: apiUrl.hostname, path: apiUrl.pathname + apiUrl.search, method: 'POST', headers: { apikey: key, Authorization: `Bearer ${key}`, 'Content-Type': 'application/json', Prefer: 'return=minimal', 'Content-Length': Buffer.byteLength(body), }, }, (res) => { res.resume(); resolve(res.statusCode); }); req.on('error', () => resolve(null)); req.write(body); req.end(); }); } async function supabaseAlreadySent(orderId) { if (!supabaseCfg) return false; const { url, key } = supabaseCfg; const apiUrl = new URL(`/rest/v1/review_requests?order_id=eq.${orderId}&status=eq.sent&select=order_id`, url); return new Promise((resolve) => { const req = require('https').request({ hostname: apiUrl.hostname, path: apiUrl.pathname + apiUrl.search, method: 'GET', headers: { apikey: key, Authorization: `Bearer ${key}`, Accept: 'application/json', }, ...[truncated 4440 chars]- Remediation
View remediation
