Skip to content

Commit

Permalink
Fix vtysh shell-ingestion security issue (sonic-net#7759)
Browse files Browse the repository at this point in the history
Fix vtysh shell-ingestion security issue
Only expose the limited parameters of the command vtysh show.
  • Loading branch information
xumia authored Jun 28, 2021
1 parent dbd086b commit 5c503b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions files/image_config/sudoers/sudoers
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ Cmnd_Alias READ_ONLY_CMDS = /bin/cat /var/log/syslog*, \
/usr/bin/sensors, \
/usr/bin/tail -F /var/log/syslog, \
/usr/bin/rvtysh *, \
/usr/bin/vtysh -c show *, \
/usr/bin/vtysh -n [0-9] -c show *, \
/usr/bin/vtysh -c show version, \
/usr/bin/vtysh -c show bgp ipv[46] summary json, \
/usr/bin/vtysh -n [0-9] -c show version, \
/usr/bin/vtysh -n [0-9] -c show bgp ipv[46] summary json, \
/usr/local/bin/decode-syseeprom, \
/usr/local/bin/generate_dump, \
/usr/local/bin/ipintutil, \
Expand Down

0 comments on commit 5c503b8

Please sign in to comment.