🇰🇷 한글 설명
OpenReception의 예약 소프트웨어 1.0.2 미만 버전에서 발생하며, 인증된 TENANT_ADMIN이 API 호출을 통해 데이터베이스 연결 문자열을 포함한 전체 테넌트 레코드를 탈취할 수 있습니다. 이 연결 문자열에는 데이터베이스 접속 정보가 포함되어 있어, 공격자가 애플리케이션의 격리 메커니즘을 우회하여 모든 테넌트의 데이터와 관리자 계정에 접근하거나 조작할 수 있습니다.
💡 쉬운 설명
관리자 권한을 가진 사용자가 시스템의 핵심 비밀번호와 데이터베이스 주소를 몰래 알아낼 수 있는 보안 결함입니다. 이 정보를 이용하면 다른 고객들의 개인 정보나 예약 내역을 모두 훔쳐보거나 삭제할 수 있어 매우 위험합니다.
🇺🇸 원문 (English)
OpenReception's appointment booking software provides an end-to-end encrypted appointment booking platform. Prior to version 1.0.2, the `GET /api/tenants/{id}` endpoint returns the full tenant record to any authenticated `TENANT_ADMIN` of that tenant, including the `databaseUrl` field. This field contains the live PostgreSQL connection string the application uses to connect to that tenant's database. In the tested official `docker-compose.prod.yml` deployment, the connection string contained the user `postgres` with `rolsuper=true` and the plaintext password from `secrets/postgres_password.txt`. Operators who configure a non-superuser PostgreSQL user via `secrets/postgres_user.txt` would expose a less privileged credential, but the disclosure of the connection string itself is independent of that choice. The same credential applies to every database managed by that PostgreSQL instance: the central `appointment_booking` database, every per-tenant database (one per tenant), and the postgres administrative database. A `TENANT_ADMIN` of one tenant who can reach `postgres:5432` (directly via internal network, indirectly via any SSRF, RCE, or file-read in the application) can read every other tenant's appointment ciphertexts, key shares, and metadata; read the central user table, including all `GLOBAL_ADMIN` accounts, password hashes, and session records; modify or delete any data in any tenant database; and/or i a superuser-scoped deployment: use PostgreSQL's `pg_read_server_files`, `COPY ... FROM PROGRAM`, and `CREATE EXTENSION` for further escalation inside the database container. This breaks the per-tenant database isolation that is otherwise the primary cross-tenant control in the application. The application code carefully scopes most queries to the calling tenant's database, but those scopings are irrelevant once the attacker holds the credentials that bypass the application entirely. Version 1.0.2 fixes the issue.
📍 영향받는 시스템
OpenReception appointment booking software (version < 1.0.2)
⚔️ 공격 벡터
인증된 TENANT_ADMIN 권한을 이용한 GET /api/tenants/{id} API 엔드포인트 호출을 통한 정보 유출 및 데이터베이스 직접 접속
🛡️ 대응 방법
OpenReception 소프트웨어를 버전 1.0.2 이상으로 즉시 업데이트하십시오.
🔧 검증 코드
응답 결과에 'databaseUrl' 필드와 실제 데이터베이스 접속 정보가 포함되어 있다면 취약한 상태입니다.
curl -s -X GET http://<target>/api/tenants/<id> | grep -E 'databaseUrl'