...
Code Block | ||
---|---|---|
| ||
<!ELEMENT neutralization (#PCDATA)*> <!ATTLIST neutralization argpos CDATA #REQUIRED kind CDATA #IMPLIED resource %resource; #IMPLIED > |
argpos
:
argpos attribute specifies what object (or objects) are “untainted” by the routine. Indicates which element is being neutralized by this neutralization. Depending on how your custom neutralization routine works, you should code a differente value in this argument. Allowed values are:
...
Neutralization routines could be defined in the same class where they are used, or in a different one, where you can invoke them through an object instantiation call or by an static call. Any combination of this and the argpos attribute values is possible.
kind
:
A neutralization routine is usually applied to a specific vulnerability type (or “kind”). kind attribute indicates the type of vulnerability affected by this neutralization, like "xss", "sql_injection", "open_redirect", etc. Use "string" for general purpose neutralizations.
...