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

Stored XSS vulnerability in /medicines #14

Open
Saud-Ahmad opened this issue Apr 14, 2021 · 2 comments
Open

Stored XSS vulnerability in /medicines #14

Saud-Ahmad opened this issue Apr 14, 2021 · 2 comments

Comments

@Saud-Ahmad
Copy link

Stored XSS vulnerability in Version 2.0 which allows remote attacker to inject arbitrary script or html. This being stored, will impact all users who have permissions to view the vulnerable page.

Vulnerable Endpoint: http://localhost/RemoteClinic/medicines
Step to Reproduce:

  1. Login in Application as Doctor.
  2. When you scroll down the main dashboard page, there is medicines options, Click "New Medicine".

1

  1. Here is a "Medicine Name" Field which is vulnerable to XSS. Inject XSS Payload:
    Capture1

2

  1. You can see there is client side validation on Medicine Name with maxlength is 30 but not validate on server side.

3

  1. Change maxlength to 100.

4

  1. Now Click on Register.

5

  1. XSS Executed on medicines/new.php

6

  1. Now go to /medicines, Click on Show All.

8

  1. XSS Executed on /medicines.

7

@Saud-Ahmad
Copy link
Author

@Saud-Ahmad
Copy link
Author

Exploit has been Published by Exploit-DB
https://www.exploit-db.com/exploits/49795

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