QuestionQ18

VerifiedThreat Hunting and Detection

The following regex signature is used by security professionals to detect an XSS attack:

/((\%3C)|<)[^\n]+((\%3E)|>)/|

Which type of XSS attack does this regex expression detect?

Explanation

The pattern detects HTML tag markup by matching opening and closing angle brackets in either literal form (< and >) or URL-encoded form (%3C and %3E), with content between them. HTML tags can carry malicious XSS payloads, such as injected script-related markup.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!