TsgcWebSocketFirewallProperties › XSS

XSS Property

Scans inbound messages for cross-site scripting patterns and denies, allows or logs them according to Action.

Syntax

property XSS: TsgcFirewallXSS read FXSS write SetXSS;

Default Value

Remarks

Enable XSS.Enabled to run the built-in case-insensitive scanner that looks for <script, javascript:, event handlers (onerror=, onload=, onclick=, onmouseover=), eval(, document.cookie, <iframe, <object, <embed, <svg onload and CSS expression(. Action controls the response: faDeny rejects the message, faAllow forwards it and faLog only fires OnViolation with type fvXSS. Matches contribute to ThreatScore through WeightXSS. Defaults: Action=faDeny.

Example


sgcWebSocketFirewall1.XSS.Enabled := True;
sgcWebSocketFirewall1.XSS.Action := faDeny;

Back to Properties