OCO-ServerのMDMに認証不備、1.2.3で修正
Summary
自社運用の端末管理ツール OCO-Server のApple向けMDM登録機能に、署名の確認が不十分な欠陥があります。端末のシリアル番号を知る第三者が、認証なしでその端末のMDM用証明書と秘密鍵を取得し、端末になりすませます。MDM機能を使っている場合は、1.2.3 へ更新してください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
自社運用の端末管理ツール OCO-Server のApple向けMDM登録機能に、署名の確認が不十分な欠陥があります。端末のシリアル番号を知る第三者が、認証なしでその端末のMDM用証明書と秘密鍵を取得し、端末になりすませます。MDM機能を使っている場合は、1.2.3 へ更新してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| schorschii | OCO-Server | — | — |
Original description The description as published by the source.
OCO-Server is a self-hosted endpoint management application for computer inventory, software deployment, and mobile device management. Prior to 1.2.3,the Apple MDM enrollment endpoint frontend/api-mdm.php verifies the signed enrollment-request plist with openssl_pkcs7_verify(..., PKCS7_NOVERIFY, ...). PKCS7_NOVERIFY disables signer certificate chain and trust validation, so the signature only has to be self-consistent with whatever certificate is embedded in the PKCS#7 blob. A self-signed certificate from an unrelated attacker is accepted. Because the endpoint trusts the SERIAL field taken from the unverified payload, anyone who knows a registered device's serial number can sign a forged plist (SERIAL = victim device, attacker-chosen UDID) with an arbitrary self-signed certificate; POST it unauthenticated to /api-mdm.php/profile (Content-Type: application/pkcs7-signature); and receive the victim device's freshly minted MDM identity: a certificate with CN= issued by the server's internal MDM device CA, bundled with its private key in a PKCS#12 payload inside the returned .mobileconfig enrollment profile. Additionally, the victim's mobile_device database row is silently overwritten with the attacker-supplied UDID (device-record hijack). With the stolen certificate and key, the attacker can impersonate the victim device on all subsequent MDM traffic (/checkin, /mdm, /parameters), which authenticate callers by the certificate CN (the serial number) v…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com