Menu

OpenEMR's one-time token ignored its own limits
📰

OpenEMR's one-time token ignored its own limits

DEV Community: authentication·OnaEiuspkz·26 days ago
#6sAiXRwK
#devtoauthentication#devto#dev#token#time
Long article (703 words) — no AI summary yet.
Reading 0:00
15s threshold

OpenEMR's one-time token ignored its own limits

Patient portals often use a service token to move a user from a clinic workflow into an authenticated session. The token is supposed to be narrow, short-lived, and consumed once. OpenEMR's OneTimeAuth implementation had the opposite behavior in affected versions: it ignored its own one-time-use and maximum-access flags, kept consumed service tokens valid, and checked the login PIN without rate limiting or strict comparison.

CVE-2026-124445 affects OpenEMR from 7.0.1 before 8.4.0. The CVE record describes token replay and PIN brute force and rates the issue CVSS v4.0 9.3 and CVSS v3.1 9.8. The impact is a patient-portal session, with access to the protected health information available through that session.

The vulnerable file is src/Common/Auth/OneTimeAuth.php . The advisory says the flags enforce_onetime_use and max_access_count were ignored, consumed service_auth tokens were never revoked, and the PIN check lacked rate limiting or a strict comparison.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.