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

Configurability of SecDefaultAction for OWASP Core Rule Set #1403

Merged
merged 2 commits into from Apr 1, 2016

Conversation

FlatKey
Copy link
Contributor

@FlatKey FlatKey commented Mar 26, 2016

No description provided.

@@ -10,6 +10,7 @@
$content_types = 'application/x-www-form-urlencoded|multipart/form-data|text/xml|application/xml|application/x-amf',
$restricted_extensions = '.asa/ .asax/ .ascx/ .axd/ .backup/ .bak/ .bat/ .cdx/ .cer/ .cfg/ .cmd/ .com/ .config/ .conf/ .cs/ .csproj/ .csr/ .dat/ .db/ .dbf/ .dll/ .dos/ .htr/ .htw/ .ida/ .idc/ .idq/ .inc/ .ini/ .key/ .licx/ .lnk/ .log/ .mdb/ .old/ .pass/ .pdb/ .pol/ .printer/ .pwd/ .resources/ .resx/ .sql/ .sys/ .vb/ .vbs/ .vbproj/ .vsdisco/ .webinfo/ .xsd/ .xsx/',
$restricted_headers = '/Proxy-Connection/ /Lock-Token/ /Content-Range/ /Translate/ /via/ /if/',
$secdefaultaction = 'deny',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this unaligned?
and why does it have sec prefix, unlike the others? (we're already in the mod_security module

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's aligned with the longest existing variable name in this block (secpcrematchlimitrecursion, please look at the complete block). I've aligned the other variables in this block with my PR #1404 to fit with the style guide.
sec is not a prefix, SecDefaultAction is the affected directive in templates/mod/security_crs.conf.erb so I used the same name for the variable. There are also other existing variables in this block beginning with sec named like their affected directives.

@jonnytdevops
Copy link
Contributor

@FlatKey it would be appreciated if you could rebase this against current master as changes have gone in that should fix the failing unit tests (assuming nothing in this PR breaks them).

Thanks

@FlatKey
Copy link
Contributor Author

FlatKey commented Mar 30, 2016

@jonnytpuppet rebased.

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

Successfully merging this pull request may close these issues.

None yet

4 participants