{"exploit":{"id":"EDB-49795","name":"RemoteClinic 2.0 - Multiple Stored Cross-Site Scripting (XSS)","description":"RemoteClinic 2.0 - Multiple Stored Cross-Site Scripting (XSS)","cves":["CVE-2021-31327","CVE-2021-30042","CVE-2021-30039","CVE-2021-30034","CVE-2021-30030","CVE-2021-31329"],"author":"Saud Ahmad","published":"2021-04-22","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/49795","path":"exploits/php/webapps/49795.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-49795.txt","vulnerabilities":[{"id":"CVE-2021-31327","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stored XSS in Remote Clinic v2.0 in /medicines due to Medicine Name Field.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-31327","cvss":null,"updatedAt":"2024-08-03T22:55:53.514Z","retrievedAt":"2026-11-26T17:22:21.035Z","stale":false,"error":"Some CVE details could not be refreshed"},{"id":"CVE-2021-30042","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross Site Scripting (XSS) in Remote Clinic v2.0 via the \"Clinic Name\", \"Clinic Address\", \"Clinic City\", or \"Clinic Contact\" field on clinics/register.php","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-30042","cvss":{"version":"3.1","baseScore":5.4,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-30042"},"updatedAt":"2024-08-03T22:24:59.859Z","retrievedAt":"2026-11-26T17:11:13.440Z","stale":false,"error":null},{"id":"CVE-2021-30039","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross Site Scripting (XSS) in Remote Clinic v2.0 via the \"Fever\" or \"Blood Pressure\" field on the patients/register-report.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-30039","cvss":null,"updatedAt":"2024-08-03T22:24:59.570Z","retrievedAt":"2026-11-26T17:22:21.032Z","stale":false,"error":"Some CVE details could not be refreshed"},{"id":"CVE-2021-30034","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross Site Scripting (XSS) in Remote Clinic v2.0 via the Symptons field on patients/register-report.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-30034","cvss":{"version":"3.1","baseScore":5.4,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-30034"},"updatedAt":"2024-08-03T22:24:59.359Z","retrievedAt":"2026-11-26T01:25:58.132Z","stale":false,"error":null},{"id":"CVE-2021-30030","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross Site Scripting (XSS) in Remote Clinic v2.0 via the Full Name field on register-patient.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-30030","cvss":{"version":"3.1","baseScore":5.4,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-30030"},"updatedAt":"2024-08-03T22:24:59.144Z","retrievedAt":"2026-11-26T01:25:51.591Z","stale":false,"error":null},{"id":"CVE-2021-31329","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross Site Scripting (XSS) in Remote Clinic v2.0 via the \"Chat\" and \"Personal Address\" field on staff/register.php","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-31329","cvss":{"version":"3.1","baseScore":5.4,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-31329"},"updatedAt":"2024-08-03T22:55:53.574Z","retrievedAt":"2026-11-26T01:26:04.631Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-49795.png?v=2","url":"https://exploitbin.com/exploits/EDB-49795","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-49795/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-49795/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: RemoteClinic 2.0 - 'Multiple' Stored Cross-Site Scripting (XSS)\n# Date: 13/04/2021\n# Exploit Author: Saud Ahmad\n# Vendor Homepage: https://remoteclinic.io/\n# Software Link: https://github.com/remoteclinic/RemoteClinic\n# Version: 2.0\n# Tested on: Windows 10\n# CVE : CVE-2021-30030, CVE-2021-30034, CVE-2021-30039, CVE-2021-30042, CVE-2021-31329\n\n#Steps to Reproduce:\n\n1)Login in Application as Doctor.\n2)Register a Patient with Full Name Field as XSS Payload: XSS\"><img src=x onerror=alert(`XSS-BY-Saud-Ahmad`)>\n3)After Register Patient, go to \"Patients\" endpoint.\n4)XSS Executed.\n\nFor Detail POC: https://github.com/remoteclinic/RemoteClinic/issues/1\n\n#Steps to Reproduce:\n\n1)Login in Application as Doctor.\n2)Register a Patient.\n3)After Register Patient, a page redirect to Register Report Page.\n4)Here is \"Symptoms\" Field as XSS Payload: XSS\"><img src=x onerror=alert(`XSS-BY-Saud-Ahmad`)>\n4)After Register Report, Click on home which is \"dashboard\" endpoint.\n5)XSS Executed.\n\nFor Detail POC: https://github.com/remoteclinic/RemoteClinic/issues/5\n\n#Steps to Reproduce:\n\n1)Login in Application as Doctor.\n2)Register a Patient.\n3)After Register Patient, a page redirect to Register Report Page.\n4)When you scroll down page two fields there \"Fever\" and \"Blood Pressure\", both are vulnerable to XSS, inject XSS Payload in both Fields: XSS\"><img src=x onerror=alert(`XSS-BY-Saud-Ahmad`)>\n4)After Register Report, Click on home.\n5)Now Click on Report, XSS Executed.\n\nFor Detail POC: https://github.com/remoteclinic/RemoteClinic/issues/8\n\n#Steps to Reproduce:\n\n1)Login in Application as Doctor.\n2)Register a New Clinic.\n3)Here is four fields \"Clinic Name\", \"Clinic Address\", \"Clinic City\" and \"Clinic Contact\". All are vulnerable to XSS.\n4)Inject XSS Payload in all Fields: XSS\"><img src=x onerror=alert(`XSS-BY-Saud-Ahmad`)>\n4)Now go to Clinic Directory.\n5)Click on that Clinic.\n6)XSS Executed.\n\nFor Detail POC: https://github.com/remoteclinic/RemoteClinic/issues/11\n\n#Steps to Reproduce:\n\n1)Login in Application as Doctor.\n2)Create a New Medicine.\n3)Medicine Name Field is Vulnerable to XSS, inject with XSS Payload: XSS\"><img src=x onerror=alert(`XSS-BY-Saud-Ahmad`)>\n4)But there is client side validation on maxlength but not on server side.\n4)Change maxlength 30 to 100.\n5)Click on Register.\n6)Now Click on Show All which is /medicines/ endpoint.\n7)XSS Executed.\n\nDetail POC: https://github.com/remoteclinic/RemoteClinic/issues/14\n\n#Steps to Reproduce:\n\n1)Login in Application as Doctor.\n2)Create a New Staff Member.\n3)Here is Chat Field and Personal Address Field are Vulnerable to XSS, inject with XSS Payload: XSS\"><img src=x onerror=alert(`XSS-BY-Saud-Ahmad`)>\n4)Profile Created.\n5)Signout.\n6)Now login with that staff member which Chat field and Personal Address field consist of XSS Payload.\n7)After Login, go to my profile.\n8)XSS Executed.\n\nDetail POC: https://github.com/remoteclinic/RemoteClinic/issues/16","sha256":"666d56b808f2244e66bad1b8af8b7349598cbe840fb575860cc9d1d9e3bea5dd","bytes":2931,"fetchedAt":"2026-11-26T17:11:08.628Z","encoding":"utf-8 (display only; download retains original bytes)"}