codeboot
codeboot copied to clipboard
Local File Inclusion in urlget.cgi
The line response = urllib2.urlopen(request.getvalue("url"))
can be used to access the content of files on the server. urllib2 accepts local URLs, so simply send a URL starting with file:
to display the content of the file in question.
POC : executing JS code CodeBoot.prototype.urlGet('file:///etc/passwd')
.