HTB OnlyForYou
·13 mins
OnlyForYou is a Medium Linux box that requires source code analysis. The vhost has a file read vulnerability caused by the
os.path.join()
function, enabling access to the source code of another virtual host. This, in turn, exposes a command injection vulnerability by bypassing the regex. Additionally, an internal site is susceptible to cipher injection, which allows exfiltrating user hashes. Root escalation involves exploiting pip download using a malicious Python package