提示說(shuō):
Theflag07user was writing their very first perl program that allowed them to ping hosts to see if they were reachable from the web server.
這是一個(gè)cgi程序,運(yùn)行著一個(gè)server服務(wù),查看源代碼:

查看源碼發(fā)現(xiàn)漏洞處在`ping -c 3 $host`這句,host為攻擊者可控,通過(guò)| ;等符號(hào)執(zhí)行額外命令
首先查看運(yùn)行這個(gè)程序權(quán)限是什么,以level07賬號(hào)登錄進(jìn)去查看目錄權(quán)限:


可知道這個(gè)程序的運(yùn)行者是flag07,直接利用/bin/getflag提權(quán),或者自己創(chuàng)建一個(gè)shell提權(quán)
