Security: YAML config loader vulnerable to billion laughs attack #110
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_aibroker#110
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?
Severity: Medium
Location
crates/hero_aibroker_lib/src/registry/loader.rsFinding
serde_yamlby default processes YAML aliases, which can be exploited for denial of service:yaml\na: &a [1,2,3,4,5,6,7,8,9,10]\nb: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a,*a]\nc: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b,*b]\n# Exponential expansion -> gigabytes of memory\nImpact
Recommendation\n- Use
serde_yamlwith alias depth limits\n- Validate config file size before loading\n- Consider using a safer format (TOML) for configs