{"id":"CVE-2026-49467","state":"PUBLISHED","title":"TOTP enrollment hijack: password gate skipped due to unawaited promise","description":"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.","publishedAt":"2026-08-12T17:02:26.556Z","updatedAt":"2026-08-14T21:52:13.060Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["smp46 pingvin-share-x"],"affected":[{"vendor":"smp46","product":"pingvin-share-x","versions":[{"version":">= 1.5.0, < 1.18.1","status":"affected"}]}],"references":["https://github.com/smp46/pingvin-share-x/security/advisories/GHSA-59q6-jvp6-w282"],"weaknesses":["CWE-303","CWE-304"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/49xxx/CVE-2026-49467.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49467","state":"PUBLISHED","datePublished":"2026-08-12T17:02:26.556Z","dateUpdated":"2026-08-14T21:52:13.060Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-30T04:17:43.094Z"},"containers":{"cna":{"title":"TOTP enrollment hijack: password gate skipped due to unawaited promise","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"smp46","product":"pingvin-share-x","versions":[{"version":">= 1.5.0, < 1.18.1","status":"affected"}]}],"references":[{"url":"https://github.com/smp46/pingvin-share-x/security/advisories/GHSA-59q6-jvp6-w282","name":"https://github.com/smp46/pingvin-share-x/security/advisories/GHSA-59q6-jvp6-w282","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-303","lang":"en","description":"CWE-303: Incorrect Implementation of Authentication Algorithm","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-304","lang":"en","description":"CWE-304: Missing Critical Step in Authentication","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-12T17:02:26.556Z"},"source":{"advisory":"GHSA-59q6-jvp6-w282","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-14T21:52:03.631125Z","id":"CVE-2026-49467","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-14T21:52:13.060Z"}}]}}}