skill-forge-base
Audited by Socket on Nov 12, 2026
9 alerts found:
Anomalyx4Securityx5This is a quiz web server with database, file, and Claude CLI integrations; no clear package malware, credential theft, or unexplained external network destination is evident. The primary risks are possible path traversal in static file reads and quiz-ID file operations, permissive unauthenticated/CORS-enabled API access, unbounded request buffering, and shell-enabled execution of a locally configured CLI command. AI prompts intentionally include user and quiz content, and generated HTML safety depends on omitted templates. Overall severity is moderate; no credentials or external domains are identifiable in the fragment.
This is quiz-server application code, with no clear evidence of malware or data exfiltration. It has significant security risks: unauthenticated destructive APIs, wildcard CORS, and path traversal possibilities in history-file reads and quiz-file deletion; a malicious ~/.skill-forge/config.json ai.cliCommand can also execute commands because spawn uses shell: true. AI-generated HTML may introduce XSS if downstream templates render it without sanitization, which cannot be confirmed from this file. Severity is high for deployments reachable by untrusted clients; no suspicious domains, URLs, IPs, or credential targets are present.
This code generates and operates a quiz dashboard and shows no clear malware behavior, credential theft, or unauthorized exfiltration. It has a significant XSS risk because unescaped exam data is inserted into HTML and inline handlers, and API-returned quiz content is written directly with `document.write()`. The history-report URL is also opened without validation. Severity: security warning, primarily dependent on whether the rendered data and API responses can be influenced by untrusted users.
Security warning: this results-page generator has significant XSS exposure because untrusted quiz data and AI/API responses are interpolated into HTML, inline scripts, and innerHTML without consistent context-aware escaping. A malicious value could execute JavaScript in a viewer’s browser; severity is high if those values can be controlled by users or external AI/API content. The fragment shows no evidence of malware or credential theft.
This code implements a quiz UI and same-origin API interactions, with no evident malware, credential theft, or external exfiltration. The principal security risk is potential XSS from inserting quiz content and AI responses into innerHTML without sanitization. It also stores answers in localStorage; severity is moderate and depends on whether API content and same-origin scripts are trusted. No external domains, IP addresses, or environment variables are present.
This function generates a quiz-history HTML page and contains no evident malware or data-exfiltration behavior. It has a security warning: unescaped `topic` and knowledge-point values can enable stored XSS, and `quiz_id` is inserted into inline JavaScript without context-appropriate encoding. Severity is moderate and depends on whether these values can be controlled by an attacker; the wrong-question content field is HTML-escaped.
This function generates a quiz search and management page and contains a high-severity XSS risk because query and quiz data are interpolated into HTML and inline JavaScript without escaping. Crafted quiz IDs can inject JavaScript, while crafted topic or query values can inject markup or scripts. The delete action calls `/api/delete-quiz`, but its server-side security cannot be assessed from this file; no malware behavior or suspicious external destination is evident.
This code generates quiz HTML and does not itself transmit data or perform system-level actions. It has a significant conditional XSS risk because quiz and question fields are inserted into HTML, URL, and JavaScript contexts without escaping or validation; severity depends on whether those fields can be attacker-controlled. No malware behavior is evident.
This function generates a question-search HTML page and does not show evidence of malware or data exfiltration. However, it inserts the query and result fields into HTML without escaping, creating an XSS risk when those values are attacker-controlled; the affected values include question content, quiz topic, options, knowledge points, and quiz ID. Severity is moderate and depends on the provenance of the arguments.