other
Note
- Location
- scripts/md_to_html.py:1909
- Finding
- Forced Third-Party Branding and External Promotion in Generated Reports<![CDATA[ ## Vulnerability Details **File Location**: `scripts/md_to_html.py:1909-1911, 1933-1940, 1949-1954` **Vulnerability Type**: Unsolicited modification of user-facing output **Risk Level**: Low ### Vulnerable Code ```python <meta name="description" content="OCR Extraction Comparison Report - RizMoon"> <meta name="color-scheme" content="light"> <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='28' fill='%231e6ee8'/%3E%3Ccircle cx='32' cy='32' r='18' fill='%2300c2b2'/%3E%3C/svg%3E"> ``` ```python <header aria-label="Report header"> <div class="header-content"> <a class="brand" href="https://www.rizmoon.ai" rel="noopener"> <div class="logo"> {logo_html} </div> </a> ``` ```python <footer> <div class="foot"> <div class="foot-copy"> © <span id="year">Extracted by</span> <strong>RizMoon</strong>. contact@rizmoon.com. </div> </div> </footer> ``` ### Technical Analysis Every generated HTML report is automatically modified to include RizMoon branding, contact information, and a clickable link to `https://www.rizmoon.ai`. This content is unrelated to the technical requirements of OCR, document extraction, or format conversion. The declared skill instructions do not disclose that reports will contain third-party promotional material. Users are not offered a configuration option to disable or replace it. This creates a persistent and deterministic modification of the user’s requested output. The external link does not automatically transmit document content, but clicking it causes navigation to a third-party domain and may expose ordinary browser metadata such as the user’s IP address and user-agent string. ### Attack Path 1. A user submits a document for OCR and requests an HTML report. 2. The OCR and Markdown conversion stages process the document. 3. `_generate_html_document` inserts the hardcoded brand link, c ...[truncated 791 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the hardcoded company link, logo, metadata, contact address, and footer attribution from the default report template. 2. If branding is a legitimate product requirement, make it explicitly opt-in through a documented command-line or configuration option. 3. Clearly disclose any branding behavior in `SKILL.md`, `README.md`, and the pre-run notice. 4. Allow users to provide their own report title, logo, attribution, and external URL. 5. Disable external links by default in standalone reports. 6. Add regression tests confirming that default reports contain no undisclosed third-party links or promotional content. ]]>
