Advertisement
travisbgreen

Untitled

Mar 19th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. rule detecting ".." does not fire on ".." in http_uri:
  2. alert http any any -> any any (msg:"ping"; content:"|2e 2e|"; http_uri; sid:100;)
  3. T 192.168.4.6:34160 -> 45.33.32.156:80 [AP] #1735
  4. GET /.. HTTP/1.1..Accept-Encoding: identity..Host: scanme.nmap.org..User-Agent: Python-urllib/3.6..Connec
  5. tion: close....
  6.  
  7. T 192.168.4.6:45892 -> 93.184.216.34:80 [AP] #750
  8. GET /.. HTTP/1.1..Accept-Encoding: identity..Host: example.com..User-Agent: Python-urllib/3.6..Connection
  9. : close....
  10.  
  11.  
  12. yet rule using http_raw_uri does fire:
  13. alert http any any -> any any (msg:"ping"; content:"|2e 2e|"; http_raw_uri; sid:101;)
  14. 03/19/2019-16:19:48.570661 [**] [1:101:0] ping [**] [Classification: (null)] [Priority: 3] {TCP} 192.168.4.6:45932 -> 93.184.216.34:80
  15. 03/19/2019-16:19:57.027510 [**] [1:101:0] ping [**] [Classification: (null)] [Priority: 3] {TCP} 192.168.4.6:34160 -> 45.33.32.156:80
  16.  
  17.  
  18. works as expected in snort:
  19. alert tcp any any -> any $HTTP_PORTS (msg:"ping"; content:"|2e 2e|"; http_uri; sid:100;)
  20. 03/19-16:19:49.080887 [**] [1:100:0] ping [**] [Priority: 0] {TCP} 192.168.4.6:45936 -> 93.184.216.34:80
  21. 03/19-16:19:56.870987 [**] [1:100:0] ping [**] [Priority: 0] {TCP} 192.168.4.6:34160 -> 45.33.32.156:80
  22.  
  23.  
  24. and strangely rule detecting ".." does fire on "...":
  25. alert http any any -> any any (msg:"ping"; content:"|2e 2e|"; http_uri; sid:100;)
  26. 03/19/2019-16:08:14.678962 [**] [1:100:0] ping [**] [Classification: (null)] [Priority: 3] {TCP} 192.168.4.6:60804 -> 45.33.32.156:80
  27. 03/19/2019-16:08:15.860135 [**] [1:100:0] ping [**] [Classification: (null)] [Priority: 3] {TCP} 192.168.4.6:60810 -> 45.33.32.156:80
  28.  
  29. T 192.168.4.6:60804 -> 45.33.32.156:80 [AP] #29
  30. GET /... HTTP/1.1..Host: scanme.nmap.org..User-Agent: curl/7.58.0..Accept: */*....
  31. T 192.168.4.6:60810 -> 45.33.32.156:80 [AP] #35
  32. GET /... HTTP/1.1..Host: scanme.nmap.org..User-Agent: curl/7.58.0..Accept: */*....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement