Welcome to JerryTok, your portal to the nearest jerryboree, where mediocrity is celebrated! Dive into the daily escapades of the wonderfully average, from mundane mishaps to modest triumphs. Share your moments, connect, and laugh as you find glory in the ordinary. Join now and embrace the delightfully dull at your local jerryboree!
I wasn't able to get cgi-bin to work and most probably it's because of "open_basedir = /www" restriction, meaning we can't write anything outside /www
Note: Checking the directory via Docker showed that it didn't exist? or this location was correct /var/www/localhost/cgi-bin, but it wouldn't update scripts.
official docs says that ScriptAlias /cgi-bin /usr/bin is the location of cgi binaries that can be executed, but basedir prevents that.
Most system commands are disable, by PHP has tilde just like bash which can be used to bypass the filters.
Upload the webshell:
Oddly enough this works on local instance, but not remote... wot...
The file is definitely written, but it's not able to execute on Remote
Back to CGI thingy, in the docs I saw .htaccess tutorial
Pasted_image_20240907194421.png
.htaccess files provide a way to make configuration changes on a per-directory basis.src