T09 · Insecure Skill Coding Practices
Error
- Location
- references/campus-services.md:23
- Finding
- Plaintext HTTP Used for Authentication and SSO Entry Points<![CDATA[ ## Vulnerability Details **File Location**: `references/campus-services.md`, lines 23-25 **Additional Location**: `references/official-links.md`, lines 28-30 **Vulnerability Type**: Plaintext transport for credential-bearing services **Risk Level**: High ### Vulnerable Configuration The documentation identifies the following credential-bearing endpoints: ```text Unified identity authentication: http://ids.qfnu.edu.cn/authserver/ Online service portal: http://ehall.qfnu.edu.cn Academic system SSO: http://zhjw.qfnu.edu.cn/sso.jsp ``` It also instructs users that these services support authentication using student identifiers, passwords, verification codes, and federated sign-in methods. ### Technical Analysis The Skill directs users to authentication and single sign-on services through plaintext HTTP URLs. HTTP does not provide transport confidentiality, server authenticity, or integrity. Unless the service performs a secure redirect before any credentials or session data are transmitted—and users reliably validate that redirect—a network-positioned attacker may intercept or modify the connection. The reviewed project does not establish that these endpoints enforce immediate HTTPS redirection, HSTS, or another mechanism that makes direct HTTP navigation safe. Because the identity service provides access to multiple linked university systems, compromise of its credentials or session state can have a broader effect than compromise of an isolated application. ### Attack Path 1. A user follows one of the HTTP links supplied by the Skill. 2. The user connects through a network accessible to an attacker, such as an untrusted wireless network or compromised local gateway. 3. The attacker intercepts the plaintext request or modifies the HTTP response before a secure connection is established. 4. The attacker presents a spoofed sign-in page, captures credentials, or steals exposed session material. 5. The attacker attempts to access SSO-linked acad ...[truncated 771 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace every credential-bearing HTTP URL with a verified HTTPS endpoint. 2. If an HTTPS endpoint cannot be verified, direct users to the university's HTTPS homepage and provide navigation instructions instead of a direct HTTP authentication link. 3. Explicitly warn users not to enter passwords, verification codes, or other credentials on an HTTP page. 4. Ask the service owner to enforce HTTPS-only access, immediate server-side redirects, and HSTS. 5. Confirm that authentication cookies use the `Secure`, `HttpOnly`, and appropriate `SameSite` attributes. 6. Remove obsolete HTTP URLs from both `campus-services.md` and `official-links.md` so the insecure path is not reintroduced elsewhere. 7. Periodically validate all authentication links and document the date and source of verification. ]]>
