312-49 · Question #657
During an investigation of an XSS attack, the investigator comes across the term "[a-zA-Z0- 9\%]+" in analyzed evidence details. What is the expression used for?
The correct answer is B. Checks for forward slash used in HTML closing tags, its hex or double-encoded hex equivalent. In XSS detection signatures, attackers encode special characters to evade filters. The forward slash (/) used in HTML closing tags (e.g., </script>) can be represented as its hex equivalent %2F or double-encoded as %252F. The pattern [a-zA-Z0-9\%]+ matches the alphanumeric charac
Question
During an investigation of an XSS attack, the investigator comes across the term "[a-zA-Z0- 9%]+" in analyzed evidence details. What is the expression used for?
Options
- AChecks for upper and lower-case alphanumeric string inside the tag, or its hex representation
- BChecks for forward slash used in HTML closing tags, its hex or double-encoded hex equivalent
- CChecks for opening angle bracket, its hex or double-encoded hex equivalent
- DChecks for closing angle bracket, hex or double-encoded hex equivalent
How the community answered
(62 responses)- A10% (6)
- B63% (39)
- C5% (3)
- D23% (14)
Explanation
In XSS detection signatures, attackers encode special characters to evade filters. The forward slash (/) used in HTML closing tags (e.g., </script>) can be represented as its hex equivalent %2F or double-encoded as %252F. The pattern [a-zA-Z0-9%]+ matches the alphanumeric characters and percent signs that make up these encoded forms, allowing detection of obfuscated forward slashes. Each character class in such XSS detection patterns targets a specific encoded artifact - this one targets the slash and its encoded variants.
Topics
Community Discussion
No community discussion yet for this question.