-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Flag any non-validated/sanitized $_GET, $_POST, $_REQUEST, $_SERVER #72
Comments
ghost
assigned shadyvb
Oct 19, 2013
Speaking of which, shouldn't the filter_var* / filter_input* family be included in the XSS Sniff's sanitizing functions list ? |
@shadyvb yes! |
@westonruter Requested in #99 |
shadyvb
added a commit
that referenced
this issue
Oct 20, 2013
Closes #72 Switch list of sanitizing/autoescaping function to a static var to be used by other classes
shadyvb
added a commit
that referenced
this issue
Oct 20, 2013
Closes #72 Switch list of sanitizing/autoescaping function to a static var to be used by other classes
ghost
assigned westonruter
Oct 23, 2013
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Apr 22, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Apr 22, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Apr 26, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
May 15, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Jun 17, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Jun 17, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Jun 25, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Jul 22, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Aug 7, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Aug 10, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Aug 12, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Aug 18, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Sep 11, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
jrfnl
added a commit
to jrfnl/WordPress-Coding-Standards
that referenced
this issue
Oct 13, 2022
Related: * `Universal.Namespaces.OneDeclarationPerFile` - upstream Extra WordPress#6 * `Universal.Namespaces.DisallowCurlyBraceSyntax` - upstream Extra WordPress#4 * `Universal.Namespaces.DisallowDeclarationWithoutName` - upstream Extra WordPress#50 * `Universal.UseStatements.NoLeadingBackslash` - upstream Extra WordPress#46 * `Universal.UseStatements.LowercaseFunctionConst` - upstream Extra WordPress#58 * `Universal.Constants.LowercaseClassResolutionKeyword` - upstream Extra WordPress#72 * `Generic.WhiteSpace.IncrementDecrementSpacing` - issue WordPress#1511, upstream PHPCS WordPress#2172, WordPress#2174 * `Universal.Operators.DisallowStandalonePostIncrementDecrement` - upstream Extra WordPress#65 * `Universal.Constants.UppercaseMagicConstants` - upstream Extra WordPress#64
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While we should also sanitize/validate data returned from the database (post meta and options), adding checks for all functions and methods which access the database (post data, post meta, options, etc) is very difficult since there are so many. Furthermore, the severity of validating and sanitizing data coming from the database is much less important than validating and sanitizing data coming directly from the user via
$_GET
and$_POST
, since WordPress already sanitizes much of the data going into the DB, and the WordPress API functions will often sanitize the data they return automatically.$_GET
,$_POST
,$_REQUEST
, or$_SERVER
which is not wrapped in a sanitizing/validating function.isset
andempty
among other sanitization functions.http://codex.wordpress.org/Data_Validation
http://php.net/manual/en/function.filter-var.php
The text was updated successfully, but these errors were encountered: