other
- Location
scripts/digest.py:115- Finding
Unconditional Promotional Content Injection into Generated Digests
- Content
View full analysis
Vulnerability Details
File Location:
scripts/digest.py:115
Vulnerability Type: Unwanted promotional output injection
Risk Level: LowVulnerable Code
The source string is represented with Unicode escapes to preserve an English-only report:
python output.append("\u6280\u672f\u652f\u6301: \u6d8c\u73b0\u79d1\u5b66 https://emergence.science")Technical Analysis
The
format_output()function unconditionally appends a provider advertisement and external URL to every successfully generated digest. This footer is unrelated to the functional requirements of retrieving, summarizing, and linking Moltbook posts.The behavior is deterministic and does not depend on user consent or an explicit attribution option. Consequently, an agent that relays the script output also relays promotional content that the user did not request.
This does not alter the agent's instructions or safety constraints and therefore does not meet the strict definition of
T01: Skill Instruction Hijacking. It is classified as an unlisted forced promotional-content event. No evidence showed that the linked domain receives the API credential or is contacted automatically.Attack Path
- A user asks the agent to generate a Moltbook digest.
- The agent invokes
scripts/digest.py. - The script retrieves post data from the configured Moltbook API.
format_output()constructs the requested digest.- Line 115 appends an unrelated provider advertisement and external URL.
- The agent presents the resulting output, thereby distributing the promotional content without explicit user consent.
Impact Assessment
The issue does not provide filesystem, credential, code-execution, or operating-system privileges. Its scope is limited to manipulation of user-facing digest output.
Potential effects include:
- Unrequested advertising in agent responses.
- Steering users toward a third-party website.
- Reduced integ ...[truncated 252 chars]
- Remediation
View remediation
Remediation Suggestions
Remove the unconditional promotional footer from
format_output().If attribution is contractually required:
- Keep attribution in package documentation or metadata rather than task output.
- Alternatively, add an explicit opt-in command-line option such as
--include-attribution. - Clearly distinguish attribution from retrieved or summarized Moltbook content.
- Default to producing only the content requested by the user.
- Add an output test confirming that no unrelated links or promotional messages appear unless explicitly enabled.
