Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Comparison table Statistics (OWASP CRS Paranoia Levels are reverted) #258

Open
marioskourtesis opened this issue Oct 18, 2024 · 0 comments

Comments

@marioskourtesis
Copy link

The Statistics for OWASP CRS paranoia levels are not correct. The higher the Paranoia level, the more rules are in place therefore the score should be increased. Paranoia level 2 is a superset of Paranoia level 1 and so on.
Please see the snipper below from internal/report/html.go file.

```

comparisonTable = []*report.ComparisonTableRow{
{
Name: "ModSecurity PARANOIA=1",
ApiSec: computeGrade(42.86, 1),
AppSec: computeGrade(67.57, 1),
OverallScore: computeGrade(55.22, 1),
},
{
Name: "ModSecurity PARANOIA=2",
ApiSec: computeGrade(57.14, 1),
AppSec: computeGrade(58.94, 1),
OverallScore: computeGrade(58.04, 1),
},
{
Name: "ModSecurity PARANOIA=3",
ApiSec: computeGrade(85.71, 1),
AppSec: computeGrade(50.86, 1),
OverallScore: computeGrade(68.29, 1),
},
{
Name: "ModSecurity PARANOIA=4",
ApiSec: computeGrade(100.00, 1),
AppSec: computeGrade(36.76, 1),
OverallScore: computeGrade(68.38, 1),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant