T09 · Insecure Skill Coding Practices
- Location
scripts/patentmax_oa.py- Finding
Remote document titles escape the authorized output directory
- Content
View full analysis
Impact
A title such as '../outside' creates a document in the output directory's parent rather than inside it. Absolute titles can similarly select other writable locations. The resulting filename retains the generated stem and .docx suffix. unique_path() avoids ordinary existing-file overwrites but does not prevent directory escape.
