T05 · Unauthorized Access and Privilege Escalation
- Location
references/supabase-schema.sql:4- Finding
Pantry Records Lack Row-Level Access Control
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill has a coherent pantry-tracking purpose, but it needs review because it stores grocery/email-derived data in Supabase with weak access-control guidance and some commands mutate records automatically.
Review before installing. Use this only with a Supabase project that has explicit per-user row-level security, restricted grants, and authenticated user tokens. Treat grocery emails and order IDs as personal data, avoid recurring email ingestion until you have confirmed consent, and prefer dry-run or confirmation behavior before commands mutate pantry records.
references/supabase-schema.sql:4Pantry Records Lack Row-Level Access Control
scripts/pantry.py:42Unencoded User Input Is Embedded in Supabase REST Filters
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
body = json.dumps(data).encode() if data else None
req = Request(url, data=body, headers=_headers(), method=method)
try:
with urlopen(req) as resp:
raw = resp.read().decode()
return json.loads(raw) if raw.strip() else []
except HTTPError as e:
The skill declares environment and network-backed behavior but does not define explicit tool scoping such as allowed tools or permissions. That creates ambiguity about what the agent may invoke at runtime and can lead to overbroad access, especially because the workflow includes external email parsing and Supabase writes.
The invocation description is broad enough that the skill could be selected for many ordinary food- or pantry-related prompts without clear user intent to store data remotely. In context, that increases the chance the agent performs persistence actions or triggers email-driven ingestion when the user only wanted advice or a simple answer.
The skill explains that grocery order emails are parsed and pantry items are stored in Supabase, but it does not prominently warn users that purchase-derived data and pantry records will be persisted to a third-party backend. This can cause unintentional disclosure of shopping habits, household consumption patterns, and order metadata if the user assumes processing is local or ephemeral.
The refresh command performs remote PATCH operations that modify pantry item status in bulk without any dry-run, confirmation, or explicit warning at execution time. In an agent setting, this can cause unintended state changes from an ambiguous or read-only-seeming request, reducing auditability and potentially causing data integrity issues.
The summary command appears informational but implicitly calls refresh(), which performs remote writes before generating output. Hidden side effects are dangerous in agent workflows because a user or orchestrator may invoke summary expecting a safe read and instead trigger database mutations.
No suspicious patterns detected.