News for hackers. Stuff that matters.
Re:Recon and Attack Vectors from My Logs by bastawhiz on Sunday October 02, 2022 @07:27AM (#33054979)
I've had very bad experiences with mod_security. One client had a page refuse to load because the URL contained the word "DELETE". Unless they've cleaned it up a lot in recent years, I'd never recommend it to anyone.
Re:Recon and Attack Vectors from My Logs by technion on Sunday October 02, 2022 @07:38AM (#33055042)
I keep telling the story of attempting to buy some enterprise routers. I would logon to my distributor's website, click on the CISCO SELECT range, and get blocked from the site for an attempted SQL injection ("SELECT" in the query string).

On the topic of mod_security in general, something like half of these are .php urls, and there's a good chance many readers aren't even running a php interpreter. Somewhere, there's a person attempting to convince the reader that that is exactly the sort of malicious traffic you need a WAF for.

Re:Recon and Attack Vectors from My Logs by ynbl_ on Sunday October 02, 2022 @07:32PM (#33061511)
this. so much this.

its like when i tried to view a site but i was using tor and not a mainstream web browser so i had to solve 2 captchas to proceed (one for the main domain, and one for the cdn) but the captcha also takes 3 minutes to solve because its over tor and it doesnt like the speed i moved the mouse at

Re:Recon and Attack Vectors from My Logs by hsbauauvhabzb on Sunday October 02, 2022 @07:32AM (#33055000)
This, I’d rather not use a waf and focus on making sure that application security is good.

A waf is at best as good as AV, good as a catch all, but it won’t catch highly targeted stuff, and isn’t even a defensible boundary to protect the former.

Re:Recon and Attack Vectors from My Logs by brodock on Sunday October 02, 2022 @10:28AM (#33056137)
WAF is mandatory in some certifications.
Re:Recon and Attack Vectors from My Logs by hsbauauvhabzb on Sunday October 02, 2022 @06:07PM (#33060799)
Yes but so safe lots of silly controls.

The best part of a waf is the ability to add custom rules at runtime which can assist in blocking known vulnerabilities until they are remediated correctly.

I don’t think generic sql or XSS injection rules are at all effective not stop many real world attacks. I’ve also seen wafs create both an availability failure point, dos choke point, and be the most vulnerable product in the tool chain (see F5 code exec vulns).

Re:Recon and Attack Vectors from My Logs by chrisshroba on Sunday October 02, 2022 @08:05AM (#33055182)
What does AV mean in this context?
Re:Recon and Attack Vectors from My Logs by ShowalkKama on Sunday October 02, 2022 @08:10AM (#33055211)
antivirus
Re:Recon and Attack Vectors from My Logs by elric on Sunday October 02, 2022 @09:17AM (#33055638)
We had to modify an application we built for a bank. Stuff could be deleted using HTTP DELETE (after authentication & authorization, of course), which was very much Verboten by their "security" policy. Instead we had to delete using HTTP GET or POST.
Re:Recon and Attack Vectors from My Logs by sam_lowry_ on Sunday October 09, 2022 @01:40PM (#33143472)
I recently came across a Hashcash implementation which used sha-256 instead of sha-1 because of "corporate security" forbidding sha-1.
Re:Recon and Attack Vectors from My Logs by sschueller on Sunday October 02, 2022 @07:35AM (#33055024)
Sadly nothing open source comes close and because of the uptick in commercial service likes AWS and cloudflare mod_security has memory leaks and other issues.
Re:Recon and Attack Vectors from My Logs by knodi on Sunday October 02, 2022 @08:46AM (#33055461)
Yes, AWS and Cloudflare are better but not without their own problems. WAF is something you evolve over time to correct the false positive which may have been observed.

AWS WAF would trigger a false SQL injection attack if the URL contains two "+" chars and the word "and". Or if you have a cookie with JSON in it would trigger the XSS attack rule.

Highly recommend setting up WAF logs to output some logs aggression tool (e.g Splunk) and create reports, dashboard, and alerts about WAF trigger rules & request HTTP code over a span to time and see what is going on with your requests and how WAF is evaluating the requests.

1% of WAF blocks were real attacks, my experience is with a site that had 25 million unique visitors a month (no user content). i'm not saying you shouldn't have WAF, i'm saying nothing beats good visibitily into WAF to correct it behavior over time.

Re:Recon and Attack Vectors from My Logs by gingerlime on Sunday October 02, 2022 @10:28AM (#33056134)
Do AWS and Cloudflare allow you to correct their false-positives? any other 3rd party WAFs worth considering?
Re:Recon and Attack Vectors from My Logs by knodi on Sunday October 02, 2022 @11:00AM (#33056423)
Sadly no, you can disable an AWS provided rule but that may have other issues like you lose all detection for that attack vector. With AWS WAFv2 you can have custom rules with logic that lives in lambdas, the lambda is invoked every WAF request for evaluation based on the logic in the lambda.

There are few options on AWS marketplace such as Fortinet and F5 WAF rules. Fortinet is the better of the 2 and newer.