Skip to content

fix: add path validation in icourses.py... - #3059

Open
anupamme wants to merge 1 commit into
soimort:developfrom
anupamme:fix-repo-you-get-utils.custom.path-traversal-open-src-you-get-extractors-icourses.py
Open

fix: add path validation in icourses.py...#3059
anupamme wants to merge 1 commit into
soimort:developfrom
anupamme:fix-repo-you-get-utils.custom.path-traversal-open-src-you-get-extractors-icourses.py

Conversation

@anupamme

@anupamme anupamme commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Address high severity security finding in src/you_get/extractors/icourses.py.

Vulnerability

Field Value
ID utils.custom.path-traversal-open
Severity HIGH
Scanner semgrep
Rule utils.custom.path-traversal-open
File src/you_get/extractors/icourses.py:344
Assessment Pattern match — needs manual review

Description: User-controlled input used in file path for open() without sanitization. This can allow path traversal attacks to read arbitrary files.

Evidence

Scanner confirmation: semgrep rule utils.custom.path-traversal-open matched this pattern as utils.custom.path-traversal-open.

Production code: This file is in the production codebase, not test-only code.

Threat Model Context

This is a Python library - vulnerabilities affect applications that import this code.

Changes

  • src/you_get/extractors/icourses.py

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.


Automated security fix by OrbisAI Security


This change is Reviewable

User-controlled input used in file path for open() without sanitization
Addresses utils.custom.path-traversal-open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant