T09 · Insecure Skill Coding Practices
- Location
scripts/fetch-edstem.py:22- Finding
Published Hardcoded EdStem Bearer Credential
- Content
View full analysis
"$OUTPUT_DIR/thread-$thread_num-raw.json" ``` ### Technical Analysis The project distributes a reusable bearer credential directly in two executable source files. Bearer tokens grant access based on possession; therefore, any person or automated system that can read the published package can reuse this credential without knowing the account password. The scripts legitimately need to send an authentication token to the official EdStem HTTPS API. However, shipping a token belonging to an existing account is not necessary for the declared functionality and violates least-secret and secure-configuration principles. Documentation in `PUBLISHING.md:136-139` explicitly acknowledges that the published Skill includes a bearer token by default, confirming that this is not merely an omitted local placeholder. Because the token is duplicated in both implementations, replacing it in only one script would leav ...[truncated 1503 chars]- Remediation
View remediation
