csdn
Pass
Audited by Gen Agent Trust Hub on Jul 7, 2026
Risk Level: SAFEPROMPT_INJECTIONCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSDATA_EXFILTRATION
Full Analysis
- [PROMPT_INJECTION]: Indirect Prompt Injection vulnerability surface identified in article data processing.
- Ingestion points:
scripts/csdn.pyfetches article titles, stats, and metadata from CSDN APIs viacmd_articlesandcmd_articlecommands. - Boundary markers: Absent. Data from CSDN is interpolated directly into the agent context without delimiters or instructions to ignore embedded commands.
- Capability inventory: Subprocess execution via
Bashtool, file writing capabilities, and network operations for publishing articles and re-hosting images. - Sanitization: No validation or sanitization of external article metadata before processing.
- [CREDENTIALS_UNSAFE]: The skill processes sensitive authentication data.
- Session Access: Accesses the
CSDN_COOKIESenvironment variable to authenticate with CSDN services. - Hardcoded Keys: Hardcoded HMAC keys (
CA_KEY,CA_SECRET) are present inscripts/csdn.py. These are documented as public keys from CSDN's own web implementation and are vendor-owned. - [EXTERNAL_DOWNLOADS]: The
rehost_imagesfeature performs network requests to fetch images from arbitrary external URLs found in Markdown input. - Mitigation: Includes an SSRF guard (
_assert_public_url) that validates hostnames and IPs against private/reserved ranges and a custom redirect handler to prevent unexpected network traversals. - [DATA_EXFILTRATION]: Secure cookie handling practices are implemented to prevent accidental leakage.
- Mitigation: Uses
add_unredirected_headerfor session cookies, ensuring that sensitive headers are not forwarded by the HTTP client during redirects to different hosts.
Audit Metadata