]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: http.uri.raw has no spaces 5625/head
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 25 Nov 2020 14:20:02 +0000 (15:20 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 1 Dec 2020 19:32:09 +0000 (20:32 +0100)
as they are in the protocol

cf bug #2881

(cherry picked from commit 6b30890de97f1c58ecda2c60e308e8d167a36bcc)

doc/userguide/rules/http-keywords.rst

index da5529c796a4c75243ae1f578e7ac2a0a84f9748..0e3c73a1f5491ef6242999e4279f4ccc7515cd68 100644 (file)
@@ -170,6 +170,12 @@ characters %20 in a uri. This means matching on the uri.raw. The
 uri.raw and the normalized uri are separate buffers. So, the uri.raw
 inspects the uri.raw buffer and can not inspect the normalized buffer.
 
+.. note:: uri.raw never has any spaces in it.
+          With this request line ``GET /uid=0(root) gid=0(root) HTTP/1.1``,
+          the ``http.uri.raw`` will match ``/uid=0(root)``
+          and ``http.protocol`` will match ``gid=0(root) HTTP/1.1``
+          Reference: `https://redmine.openinfosecfoundation.org/issues/2881 <https://redmine.openinfosecfoundation.org/issues/2881>`_
+
 Example of the URI in a HTTP request:
 
 .. image:: http-keywords/uri1.png