T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/scrape_to_markdown.py:163- Finding
Unrestricted URL Fetching Enables Server-Side Request Forgery
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a webpage-to-Markdown scraper, but it allows overbroad URL fetching beyond its public-web claim and its documentation does not match important runtime behavior.
Review this skill carefully before installing. Run it only in an isolated environment, provide only public URLs you trust, avoid sensitive networks where localhost or cloud metadata endpoints are reachable, and pin or review dependencies before following the install commands.
scripts/scrape_to_markdown.py:163Unrestricted URL Fetching Enables Server-Side Request Forgery
README.md:27Third-Party Packages and Browser Assets Are Installed Without Version or Integrity Pinning
The documented behavior overstates or misstates what the skill does, including undeclared local file output and potentially missing or partial support for async, stealth, and dynamic modes. Security-relevant mismatches are dangerous because operators may trust controls, execution modes, or data-handling guarantees that are not actually implemented, leading to unsafe deployment decisions.
The skill advertises and operationally requires network, shell execution, and local file read/write behaviors, but it declares no explicit tool scope or permissions. This creates a capability-transparency gap: a host agent may invoke a skill with broader powers than the user expects, increasing the risk of unintended file writes, arbitrary URL fetching, or shell-mediated misuse.
This markdown file documents that --output-dir will save per-page .md files and a master index.json, but it does not explicitly warn that local files will be created or overwritten as part of execution. For markdown files, data-affecting behavior should be disclosed clearly so users understand the impact on their filesystem before running the skill.
The markdown explains stealth options such as --geoip, --proxy, and WebRTC handling, but it does not clearly warn users that these features alter transmitted browser/network metadata and may route traffic through third-party infrastructure. For markdown files, privacy-relevant behavior should be disclosed explicitly when the skill can affect how user traffic and identifying data are handled.
Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.
if obj is None:
return ""
for attr in ("html", "raw_html", "content", "markup", "body", "inner_html"):
value = getattr(obj, attr, None)
if callable(value):
try:
value = value()
Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.
for module_name, class_name in candidates:
try:
module = importlib.import_module(module_name)
cls = getattr(module, class_name)
for method_name in ("get", "fetch"):
if callable(getattr(cls, method_name, None)):
return cls, method_name
Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.
module = importlib.import_module(module_name)
cls = getattr(module, class_name)
for method_name in ("get", "fetch"):
if callable(getattr(cls, method_name, None)):
return cls, method_name
except Exception as e:
errors.append(f"{module_name}.{class_name}: {e}")
Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.
def fetch_page(url, js=False, wait_selector=None, timeout=30, automatch_domain=None):
cls, method_name = load_fetcher(js=js)
method = getattr(cls, method_name)
kwargs = {}
if js:
Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.
if automatch_domain and not js:
try:
instance = cls(automatch_domain=automatch_domain)
method = getattr(instance, method_name)
except Exception:
pass