ET HUNTING PHP Filter Chains in HTTP Body


Query · suricata

flow:established,to_server;
http.method;
content:"POST";
http.request_body;
content:"php|3a 2f 2f|filter|2f|"; fast_pattern;
pcre:"/^[^\x3d]*?(?:(?:convert\x2e(?:quoted-printable-(?:en|de)code|iconv(?:\x2e[a-z0-9_-]+){2}|base64-(?:de|en)code)|zlib\x2e(?:(?:in|de)flate)|string\x2e(?:(?:to(?:upp|low)er)|rot13|strip_tags)|dechunk|consumed)(?:\x7c|\x2f)?)+/R";
target:dest_ip;
Raw source ET HUNTING PHP Filter Chains in HTTP Body · Suricata
Esc
Published by Emerging Threats Open ↗, licensed under BSD 3-Clause ↗. Line breaks added for readability; the rule is otherwise unchanged.
alert http any any -> $HOME_NET any (
    msg:"ET HUNTING PHP Filter Chains in HTTP Body";
    flow:established,to_server;
    http.method;
    content:"POST";
    http.request_body;
    content:"php|3a 2f 2f|filter|2f|"; fast_pattern;
    pcre:"/^[^\x3d]*?(?:(?:convert\x2e(?:quoted-printable-(?:en|de)code|iconv(?:\x2e[a-z0-9_-]+){2}|base64-(?:de|en)code)|zlib\x2e(?:(?:in|de)flate)|string\x2e(?:(?:to(?:upp|low)er)|rot13|strip_tags)|dechunk|consumed)(?:\x7c|\x2f)?)+/R";
    reference:url,github.com/swisskyrepo/PayloadsAllTheThings/blob/master/File%20Inclusion/README.md#wrapper-phpfilter;
    classtype:web-application-activity;
    sid:2056495; rev:1;
    metadata:affected_product PHP, attack_target Server, tls_state TLSDecrypt, created_at 2024_10_04, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2024_10_04, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
    target:dest_ip;
)

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.