You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It sounds like that the time complexity of this function is linearly proportional to the size of validation.custom array. I think this is not OK. Suppose you have a 100 custom rules, which I consider normal, and a user sends you 100 invalid data. In this case there can be 10000 comparison against keys in validation.custom. I guess that even can be regarded as a security issue, because the CPU usage of Laravel app will be 100x the CPU usage of the attacker.
The text was updated successfully, but these errors were encountered:
It sounds like that the time complexity of this function is linearly proportional to the size of validation.custom array. I think this is not OK. Suppose you have a 100 custom rules, which I consider normal, and a user sends you 100 invalid data. In this case there can be 10000 comparison against keys in validation.custom. I guess that even can be regarded as a security issue, because the CPU usage of Laravel app will be 100x the CPU usage of the attacker.
The text was updated successfully, but these errors were encountered: