Skip to content

Dagger crashes if interface names has invalid characters #1655

Closed

Description

@mattiaswal

Current Behavior

Some examples:
/: Rejected by linux (dagger crashes)
;: Command execution (dagger may crash and code execution as root)
&&: Command execution (dagger may crash and code execution as root)
and more. We should have an allowlist.

admin@infix-00-00-00:/> configure 
admin@infix-00-00-00:/config/> edit interface 
admin@infix-00-00-00:/config/> set interface 
 e1 lo
admin@infix-00-00-00:/config/> set interface d;reboot
[ OK ] Saving system clock (UTC) to RTC
[ OK ] Saving system clock to file
[ OK ] Saving random seed
[ OK ] Stopping Device event daemon (udev)
[ OK ] Stopping Configuration daemon
[ OK ] Stopping DHCP/DNS proxy
[ OK ] Stopping CLI backend daemon
[ OK ] Stopping FRR MGMT daemon

The impact is either command execution or that you get a configuration you cant get from, since dagger crash on exit as well.

The security impact is limited, even if it looks bad.

Expected Behavior

Something else

Steps To Reproduce

No response

Additional information

No response

Activity

  1. added
    bug
    triage
    on Sep 24, 2026
  2. changed the title [-]Dagger crashes if interface names with invalid chars[/-] [+]Dagger crashes if interface names has invalid characters[/+] on Sep 24, 2026
  3. mattiaswal commented on Sep 25, 2026

    @mattiaswal
    ContributorAuthor

    Manually create a interface named a" causing zebra to crash, so the problem is bigger than just input validation.

  4. jovatn commented on Sep 28, 2026

    @jovatn
    Contributor

    CCB: Introduce reasonable whitelist. (including : _ . - + ) Provide proposal, review and implement.

  5. removed
    triage
    on Sep 28, 2026
  6. added this to the Infix v26.09 milestone on Sep 28, 2026
  7. added 3 commits that reference this issue on Sep 28, 2026
    8bc5f03
    23478f2
    a9dc6ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions