Skip to content

Timing Attack / Unintended Error Message on verifyAuthChallenge. #2

@DSSoftware

Description

@DSSoftware

File: api.php
Method: verifyAuthChallenge | UNAUTH

Description: It's possible to bruteforce all the logins, as API returns the error "WRONG_LOGIN" if login was wrong and "WRONG_PASSWORD" if password was wrong. Besides, the returnError() method returns kills the instance after the error, so it creates a possibility for Timing Attack even if the error messages were fixed.

Ways to mitigate this issue:

  • Change the error messages to "WRONG_CREDENTIALS"
  • Add a way to prevent Timing attack. This might help: usleep(random_int(0, 999999));
  • Change the error message in index.php from two separate to one about wrong credentials.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedThis issue was fully fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions