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

Need to be able to deal with a parity bit in the 8th byte for legacy protocols ported to HTTP #166

Closed
rcbarnett-zz opened this issue Oct 17, 2013 · 2 comments
Assignees

Comments

@rcbarnett-zz
Copy link
Contributor

MODSEC-13: Needed:

  • t:parity7bitEven - Calcs even parity and changes 8th bit of each byte
  • t:parity7bitOdd - Calcs odd parity and changes 8th bit of each byte
  • t:parity7bitZero - Zeros the 8th bit, removing the parity.

This allows someone to validate parity as well as remove it:

Example of checking even parity:

{noformat}
SecRule TARGET ".*" "capture,pass,nolog,t:none,t:parity7bitEven"
SecRule TARGET "!@Streq %{TX.0}" "deny,msg:'Failed parity check',t:none"
{noformat}

@rcbarnett-zz
Copy link
Contributor Author

Original reporter: brectanus

@rcbarnett-zz
Copy link
Contributor Author

brectanus: Changeset: 1147

@ghost ghost assigned zimmerle Oct 17, 2013
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

2 participants