Re:Ask HN: Can we collaborate on a IP Address or Regex black...
by usernamebias on Tuesday April 06, 2021 @11:27PM
(#26720275)
Loading a big .txt file into memory and comparing each request to it feels like a good first start. Hopefully the open source community takes it further.
Re:Ask HN: Can we collaborate on a IP Address or Regex black...
by jrockway on Tuesday April 06, 2021 @11:30PM
(#26720297)
Yeah. This is kind of a thing that already exists, it's typically marketed as a "web application firewall". Like most antivirus, it's more for show than anything. Nice layer of protection if someone is really piping HTTP headers directly into database queries without quoting, or installed a 20 years out of date app behind the firewall. Most people aren't really doing that anymore, so the value is unclear to me. But, plenty of people will sell you one, so there must be some value. (Notably, it's required for certain compliance certifications.)
Re:Ask HN: Can we collaborate on a IP Address or Regex black...
by usernamebias on Tuesday April 06, 2021 @11:34PM
(#26720323)
Is there one that comes in (.txt, .csv, etc) that I can download for free? I'd like to put together a proof of concept for ExpressJS (NodeJS) tomorrow.
Re:Ask HN: Can we collaborate on a IP Address or Regex black...
by jrockway on Wednesday April 07, 2021 @12:06AM
(#26720489)
Doubt this is the state of the art, but ModSecurity seems to exist and has rulesets floating around, like this one from OWASP: https://github.com/coreruleset/coreruleset
Here is a random Node binding for libModSecurity I found: https://github.com/manishmalik/Modsecurity-nodejs
How useful it is to rate limit on known attacks, I don't actually know. I feel like you really only need one request to exploit a 0day, so it probably provides no protection.