Security risk/exception in Will_paginate + Plus Fix
-
Mislav
- State changed from new to invalid
Hey Andrew. First of all, thanks for the report and proposed fix. I understand your concern, but this isn't a security risk.
Because we are using ActiveRecord limit/offset there is no way that an attacker could inject arbitrary SQL in the queries. He can try to pass text or HTML like this, but the effort will be futile since it would result in an error. I don't want to silence errors here by sanitizing input - these errors should happen when you give your controllers nonsense input. It's up to you to deal with those errors gracefully (eg. show a nice error page).
So, I'm closing this. If you stumble upon anything other that also might be a security hole, don't hesitate to report it again. I will review it as I did now and act accordingly.
-
Andrew Nesbitt
Ok thats great, thanks very much :)
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.