技術文章閱讀-Interfaces.d to RCE

https://research.nccgroup.com/2020/02/10/interfaces-d-to-rce/

 

同樣也是個用戶輸入到配置文件導致rce的。不過這裏是到了/etc/interfaces.d/eth0這個文件,這裏通過pre-up可以直接設置要執行的命令

auto eth0
iface eth0 inet static
    address 192.168.0.250
    netmask 255.255.255.0
    gateway 192.168.0.1
    pre-up touch /tmp/poc

  

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章