WeaponOwl
Active member
- Affected version
- 2.0, 2.1
On website i work with, some time ago happens sql injections scan. Thanks to xenforo design, opposite found nothing, but it was good lesson.
This is was my fail, i used raw parameter from query as part of registry key:
Param
This is was my fail, i used raw parameter from query as part of registry key:
\XF::registry()->get('er_time_'.$key);
Param
$key
received directly from url param, and it makes weak place for sql injection. Key with injection inside wasn't found in cache and tried to check database. From some moment key become so long, so provoke Data too long for column 'data_key'
from mysql. So have minor bug, no limit of key length on database cache check. Happens on both 2.0 and 2.1 versions.