T09 · Insecure Skill Coding Practices
- Location
scripts/safe_ros2_introspection.py:61- Finding
Shell Command Injection Through Unquoted ROS Setup Path
- Content
View full analysis
- Remediation
View remediation
/setup.bash`. 3. Require the basename to be exactly `setup.bash`. 4. Reject files writable by untrusted users and verify expected ownership. 5. Protect `config/config.json` with restrictive permissions. 6. Avoid PATH-based discovery in security-sensitive deployments; use an administrator-configured allowlist of ROS installations. 7. Add tests using paths containing semicolons, spaces, command substitution, quotes, and newline characters to verify they cannot alter shell parsing. ]]>
