Context-Inappropriate Capability
Medium
- Confidence
- 97% confidence
- Finding
- `getSection(moduleFile, sectionTitle)` joins user-controlled `moduleFile` directly with `REFERENCES_DIR` and only checks `fs.existsSync`, so inputs like `../package.json` or other relative paths can escape the intended course-module set. Because the `section` CLI command passes attacker-supplied arguments straight through, this creates a path traversal/local file read issue that can expose arbitrary files readable by the process.
