Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
TOTP enrollment hijack: password gate skipped due to unawaited promise
Vulnerability 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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
认证算法的不正确实现
Vulnerability Title
smp46 pingvin-share-x 授权问题漏洞
Vulnerability Description
smp46 pingvin-share-x是smp46个人开发者的一款基于Web的文件共享服务器。 smp46 pingvin-share-x 1.5.0版本至1.18.0版本存在授权问题漏洞,该漏洞源于在authTotp.service.ts和auth.service.ts中调用异步verifyPassword和authenticateUser方法时缺少await关键字,可能导致攻击者绕过密码验证并管理基于时间的一次性密码(TOTP)设置。
CVSS Information
N/A
Vulnerability Type
N/A