[LOW] install.sh: YAML injection via unescaped name/cmd tokens in build_yaml() #5
Labels
No labels
bug
code-review
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
foravo/mesh-review-comment-proof-20260519044241#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub issue
M00C1FER/mesh-review#8.Source: https://github.com/M00C1FER/mesh-review/issues/8
Original author: @M00C1FER
Original state: closed
Finding 7 — LOW
File:
install.shFunction:
build_yaml()Commit fixing this: 834f8d8441226ac383868a9cb8ac5c69b650581e (PR #1)
Description
build_yaml()writes user-supplied values directly into YAML without quoting or escaping:my:llmintroduces an extra YAML mapping key, breaking structure.my"argormy\argbreaks the YAML double-quoted string, potentially causing downstream YAML parse errors or unexpected config values.Affected locations
Both the bundled-entries loop (lines ~28–33) and the custom CLI block (lines ~40–45) have the same pattern.
Fix Applied
Values are now double-quoted in YAML and backslash/double-quote characters are escaped before writing:
Imported from GitHub issue comment
M00C1FER/mesh-review#8:4362220456.Source: https://github.com/M00C1FER/mesh-review/issues/8#issuecomment-4362220456
Original author: @M00C1FER
Fixed by merged PR #1.