Submit #1063194: SkeekS SkeekS CMS 6.4.9.74 OTP Brute Force Account Takeoverinfo

TitleSkeekS SkeekS CMS 6.4.9.74 OTP Brute Force Account Takeover
DescriptionSkeekS CMS x.x.x.x - Passwordless Authentication Brute Force Leading to Account Takeover (CWE-307) A potential account takeover vulnerability has been identified in the passwordless authentication functionality of SkeekS CMS, affecting the email-based verification flow implemented in src/controllers/AuthController.php. The application generates a four-digit authentication code using rand(1000, 9999), providing only 9,000 possible combinations. Source code analysis indicates that the corresponding verification endpoint does not enforce a server-side attempt limit, account lockout, or effective throttling of incorrect code submissions. An unauthenticated attacker who knows the email address associated with an existing CMS account can request a login code through the public authentication endpoint. The generated code is sent to the account owner's mailbox and stored in the session used to initiate the request. The attacker does not need access to the recipient's email account. Because the verification routine appears to accept repeated guesses without invalidating the pending challenge, an attacker can attempt to identify the correct code by enumerating the available four-digit combinations. Affected endpoints: POST /cms/auth/generate-email-code POST /cms/auth/auth-by-email-code Root cause: The issue originates in AuthController.php, particularly the code-generation routine _generateAndSaveEmailCode() and the verification routine actionAuthByEmailCode(). The generation routine uses rand(1000, 9999), while the verification routine compares the submitted value with the code stored in the current session. No attempt counter or lockout mechanism is apparent in the reviewed verification path. The reviewed implementation also does not appear to enforce the code's age during verification or invalidate the pending authentication code following successful use. Successful verification calls Yii::$app->user->login() with a 30-day duration. Proof of concept and reproduction: 1. Start an unauthenticated session and obtain the application's CSRF token where required. 2. Submit an email-code generation request for an existing test account. 3. Preserve the session associated with the generated verification challenge. 4. Submit incorrect verification codes to the email-code authentication endpoint. 5. Observe whether repeated failed submissions are accepted without server-side throttling, lockout, or challenge invalidation. 6. Submit the valid code in the controlled test environment and confirm whether the session becomes authenticated as the account associated with the requested email address. A local reproduction harness implementing the identified authentication behavior was used to demonstrate the attack scenario. In one controlled demonstration, the harness accepted 7,907 code attempts at approximately 143 requests per second before identifying the valid four-digit code and establishing an administrator session. These measurements apply to the reproduction harness and have not been independently confirmed against a complete vendor installation. Security impact: If the behavior is reproducible in a deployed SkeekS CMS installation, an unauthenticated remote attacker may be able to take over an existing user account without knowing its password or having access to its email inbox. Where the targeted email belongs to an administrator, successful authentication may provide access to administrative functions, including content management, user management, and configuration changes, depending on the permissions assigned to that account. The primary security consequence is an authentication bypass through unrestricted guessing of a low-entropy login code. Technical classification: Primary weakness: CWE-307 - Improper Restriction of Excessive Authentication Attempts. Related weakness: CWE-330 - Use of Insufficiently Random Values. Potential impact: Account takeover and unauthorized administrative access. Suggested CVSS v3.1: 9.8 (Critical), AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, subject to validation of the affected deployment and security impact. Evidence and limitations: The finding is supported by review of the publicly available authentication controller and by testing a local reproduction harness. The supplied screenshots document the reproduction environment and should not be interpreted as proof of exploitation against an unmodified production installation. The mailbox screenshot and automated guessing screenshot represent separate demonstration runs. The affected version and exploitability under the actual CMS deployment configuration should be confirmed by the maintainer or independent reviewer. Recommended remediation: Enforce a strict server-side attempt limit on every authentication challenge, with rate limiting across sessions, source addresses, and target accounts. Generate verification codes using a cryptographically secure random number generator, increase their length, enforce a short expiration period, and invalidate each code after successful authentication or excessive failed attempts. Equivalent protections should be reviewed for the SMS and callcheck authentication flows. Researcher: Abdullah Al Naowal Dhrubo LinkedIn: https://www.linkedin.com/in/01xcyanide/ Affected project: https://github.com/skeeks-cms/cms Source component: https://github.com/skeeks-cms/cms/blob/master/src/controllers/AuthController.php
Source⚠️ https://docs.google.com/document/d/104EvQV3IxFnZdHuo4ZSVUrRcc3ueQSYWNA9rFz_EvEc/edit?usp=sharing
User
 Abdullah Al Naowal Dhrubo (UID 102596)
Submission10/28/2026 21:01 (1 month ago)
Moderation11/29/2026 20:55 (1 month later)
StatusAccepted
VulDB entry445264 [SkeekS CMS up to 6.4.9.92 AuthController.php actionAuthByEmailCode email_code excessive authentication]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!