MultiTerm query segfault - remote denial of service

Hi ferreteers,

I came across a segfault in the query parser. It had already been
reported[1] and fixed[2], but it can lead to a denial of service.

If you use Ferret anywhere that you allow users to execute queries,
those users can crash your Ruby process with a specially crafted

I’m sure you’re all using Monit or something for your Rails or drb
processes, so they’ll get restarted, but it’s still not good.

This was quite serious for a number of my sites (not to mention slowing
development of a current app) so I applied the fix to the released
0.11.4 source and repackaged it as

Obviously this isn’t in any way official, but it works for me and I’m
sharing here for anyone else affected. Gem, tgz and zip here:

and just the patch (derived from Dave’s changeset to trunk) here:

The patch is against the release source, as the subversion repository
seems to be down atm.



high-profile mailing list advertising space exploitation: - UK Rails Xen Hosting

cool… thank you :slight_smile: