Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10247

mediumint(8) too small for phpbb_login_attempts.attempt_id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.9-RC4
    • 3.0.9-RC3
    • None
    • None

      Mediumint is 3 bytes in MySQL. Assuming there are 25000 failed login attempts per day, we will run out of free attempt_id values after

      (2^(3×8)÷25000)÷365 = ~2

      years.

      Solution is to either drop attempt_id if it is not needed or to change it to 4 byte integer.

      Considering half a million failed login attempts per day and four bytes:

      (2^(4×8)÷500000)÷365 = ~24 years

            nickvergessen Joas Schilling
            bantu Andreas Fischer [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: