RAGFlow through 0.18.1 allows account takeover because it is possible to conduct successful brute-force attacks against email verification codes to perform arbitrary account registration, login, and password reset. Codes are six digits and there is no rate limiting.
The application uses six-digit verification codes (only 1,000,000 possible combinations) to confirm registration, login, and password reset. Since the server does not impose any restrictions on the number of attempts (no rate limiting, IP blocks, or CAPTCHA mechanism), an attacker can automatically iterate through all possible code values. After guessing the correct code, the attacker gains full control over the registration, login, or password change process for any account associated with a given email address.
An attacker can take control of existing user accounts (including administrative ones) by resetting passwords or logging in without knowledge of the original password, as well as registering arbitrary new accounts in the system. This results in unauthorized access to application data and functions, and violates the confidentiality and integrity of the system.
Patches available from the vendor should be applied according to the references. It is recommended to track commits in the project repository (https://github.com/infiniflow/ragflow/commits/main/) to identify the version containing the fix. Until updating, it is recommended to restrict access to verification endpoints at the firewall or reverse proxy level and implement external rate limiting mechanisms.
Infiniflow RAGFlow in versions 0.18.1 and earlier
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NInfiniflow Ragflow
APPInfiniflow≤ 0.18.1
Related vulnerabilities
Zip Slip RCE w RAGFlow — nadpisanie plików przez złośliwe archiwum ZIP
Infiniflow RAGflow: SSRF, Arbitrary File Read i RCE w funkcji web_crawl
RCE w Infiniflow RagFlow — statyczny klucz AuthKey i niebezpieczna deserializacja pickle
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions 0.24.0 and prior, a Server-...
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions prior to 0.23.0, a low-priv...