Skip to content

No sanity check of input of dhcp option vendor-class #1657

Closed

Description

@mattiaswal

Current Behavior

admin@infix-00-00-00:/config/> set interface e1 ipv4 dhcp option vendor-class value `x"\nrun [2345] /bin/sh -c "id>/tmp/pwn"`
admin@infix-00-00-00:/config/> leave 
admin@infix-00-00-00:/> 
admin@infix-00-00-00:/> 
admin@infix-00-00-00:~$ ls /tmp/pwn
/tmp/pwn

This is run as user root

Expected Behavior

YANG validation error i think.

Steps To Reproduce

No response

Additional information

No response

Activity

  1. added
    bug
    triage
    on Sep 24, 2026
  2. changed the title [-]No sanity check of dhcp option `vendor-class`[/-] [+]No sanity check of input of dhcp option `vendor-class`[/+] on Sep 24, 2026
  3. jovatn commented on Sep 28, 2026

    @jovatn
    Contributor

    CCB: Target 26.10

  4. added this to the Infix v26.10 milestone on Sep 28, 2026
  5. removed
    triage
    on Sep 28, 2026
  6. added a commit that references this issue on Sep 28, 2026
    c2bc873
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