T09 · Insecure Skill Coding Practices
- Location
bb-sites/gumtree/listing.js:66- Finding
Unrestricted Listing URL Enables Server-Side Request Forgery
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is presented as pets-only, but the included code can search broader Gumtree categories and fetch non-Gumtree URLs, so it needs review before installation.
Review before installing. Use this only if you are comfortable with a bb-browser adapter that is broader than the pets-only description. Prefer a version that enforces pet categories, requires HTTPS URLs on www.gumtree.com, rejects redirects to other hosts, and pins the bb-browser dependency instead of installing the latest global package.
bb-sites/gumtree/listing.js:66Unrestricted Listing URL Enables Server-Side Request Forgery
SKILL.md:34Unpinned Global Installation of a Third-Party Dependency
If the code defaults to all or permits arbitrary categories, the skill is not actually scoped to pets despite repeated claims that it is. This creates a trust-boundary problem: systems may approve or route the skill under a benign animal-welfare use case while it can in fact scrape generic classifieds, broadening data access and bypassing policy expectations.
If the code defaults to all or permits arbitrary categories, the skill is not actually scoped to pets despite repeated claims that it is. This creates a trust-boundary problem: systems may approve or route the skill under a benign animal-welfare use case while it can in fact scrape generic classifieds, broadening data access and bypassing policy expectations.
Without declared permissions the skill's intent is opaque and cannot be validated.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
bb-sites/gumtree/search.js and bb-sites/gumtree/listing.js. Install into bb-browser:mkdir -p ~/.bb-browser/sites/gumtree
cp bb-sites/gumtree/search.js ~/.bb-browser/sites/gumtree/search.js
cp bb-sites/gumtree/listing.js ~/.bb-browser/sites/gumtree/listing.js
The adapter accepts a caller-controlled category/search_category and defaults to all, so it is not technically restricted to pets despite the skill metadata claiming pets-only use. This creates a scope-integrity problem: higher-level systems or users may rely on the declared pet-only constraint, but the code permits searches across unrelated Gumtree categories.
By exposing args.category || args.search_category || 'all', the skill provides a generic Gumtree search primitive rather than the narrower pet-search capability it advertises. In an agent setting, this can bypass policy or product restrictions built around the declared purpose of the skill, enabling unreviewed access to broader classified content.
The request hard-codes the Accept-Language header to "en-GB,en;q=0.9", which imposes a specific language/locale preference. This is a natural-language policy concern because the skill does not offer user opt-in or explain why a UK English locale is required.
The request hard-codes the Accept-Language header to en-GB,en;q=0.9, which forces an English (UK) locale regardless of the user's preferences. This is a natural-language/locale policy concern because the skill does not offer any language choice or document a justified locale restriction.