T09 · Insecure Skill Coding Practices
- Location
handler.py:131- Finding
Unvalidated Purpose Value Causes Unhandled KeyError and Request Denial of Service
- Content
View full analysis
str: return { 'Rest': 'A quiet room, shaded bench, or another low-stimulation place', 'Clarity': 'A walkable route or a table with a notebook and no chatter', 'Play': 'A light, low-pressure place that feels a little fresh', 'Recovery': 'A protected, gentle space where you do not need to perform', 'Creative space': 'A desk, library table, studio corner, or café with minimal interruption', }[purpose] def _activity_palette(purpose: str) -> Tuple[str, str, str]: palettes = { 'Rest': ( 'Tea, stretching, closed-eye rest, or lying down without input', 'A slow walk or a few pages of quiet reading without multitasking', 'Ten minutes of silence and breathing before writing one simple line about what you need', ), 'Clarity': ( 'A brain-dump list of everything crowding your mind', 'A solo walk with one question and no podcast', 'Sit with one notebook page and ask what matters most right now', ), 'Play': ( 'Flip through an art book, playlist, or playful prompt', 'Sketch, doodle, wander, or make something with no outcome pressure', 'Let yourself explore one small curiosity without turning it into a project', ), 'Recovery': ( 'Warm tea, gentle stretching, or sitting somewhere soft and quiet', 'A slow walk, soothing music, or a very light tidy reset', 'A full protected block with no obligation except settling your nervous system', ), 'Creative space': ( 'Freewrite or sketch fragments without judging them', 'Read a few pages, collect notes, o ...[truncated 3234 chars]- Remediation
View remediation
