{"id":"CVE-2026-49467","summary":"TOTP enrollment hijack: password gate skipped due to unawaited promise","details":"Pingvin Share X is a secure and easy self-hosted file sharing platform. A vulnerability in versions 1.5.0 through 1.18.0 allow an attacker to bypass password verification when managing Time-based One-Time Password (TOTP) settings. The root cause is a missing `await` keyword on calls to the asynchronous `verifyPassword` method in `authTotp.service.ts` and the `authenticateUser` method in `auth.service.ts`. In JavaScript, an unawaited `Promise` is always truthy. So the logic intended to throw a `ForbiddenException` when a password is incorrect. It never executes because the expression evaluates the existence of the `Promise` object rather than its resolved boolean result. The vulnerability is fixed in version 1.18.1 by ensuring all asynchronous authentication calls are properly awaited. There are no official workarounds. If a user is locked out, an administrator must manually reset the user's TOTP status in the database.","aliases":["GHSA-59q6-jvp6-w282"],"modified":"2026-08-16T03:31:07.803398642Z","published":"2026-08-12T17:02:26.556Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-303","CWE-304"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49467.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49467.json"},{"type":"ADVISORY","url":"https://github.com/smp46/pingvin-share-x/security/advisories/GHSA-59q6-jvp6-w282"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49467"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/smp46/pingvin-share-x","events":[{"introduced":"468b25828bf550b5a7913739849badc7be96fbfd"},{"fixed":"7819dd0ca78e27af70e2bbf46221410548dfecb4"}],"database_specific":{"source":["AFFECTED_FIELD","DESCRIPTION"],"extracted_events":[{"introduced":"1.5.0"},{"fixed":"1.18.1"},{"fixed":"1.18.0"}]}}],"versions":["v1.18.0","v1.17.0","v1.16.3","v1.16.2","v1.16.0","v1.15.2","v1.15.1","v1.15.0","v1.14.1","v1.13.4","v1.13.2","v1.13.1","v1.11.1","v1.11.0","v1.10.4","v1.10.3","v1.10.2","v1.10.1","v1.10.0","v1.9.1","v1.9.0","v1.8.2","v1.8.1","v1.8.0","v1.7.2","v1.7.1","v1.7.0","v1.6.1","v1.6.0","v1.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49467.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}