Skip to content

Slowloris vulnerability #1237

Closed
Closed

Description

Traffic server is "likely vulnerable" to slowloris (see https://nmap.org/nsedoc/scripts/http-slowloris-check.html) in both reverse and forward proxy mode.

Has anyone investigated this yet? Is there any plan to do anything about it? I appreciate the nature of the vulnerability means fully fixing it is likely impossible, I'm just trying to find out if there's an official position on the issue.

Thanks.

Activity

  1. zwoop commented on Dec 1, 2016

    @zwoop
    Contributor

    I think think you can set a timeout (proxy.config.http.transaction_active_timeout_in) which doesn't care if data is being sent or not (it's a "hard" timeout on an active connection).

  2. added this to the milestone on Jan 4, 2017
  3. modified the milestone: on Jan 8, 2017
  4. modified the milestones: , 8.0.0 on Apr 25, 2017
  5. thelounge-zz commented on Nov 5, 2017

    @thelounge-zz

    this is REALLY a problem easily to fix on httpd with https://httpd.apache.org/docs/2.4/mod/mod_reqtimeout.html (RequestReadTimeout header=5-15,MinRate=500 body=20,MinRate=500)

    the problem of slowloris is that the client sends some bytes of data and so it's not a idle connection, we face currently multiple times many hundret connections to the backendserver and there is no way in trafficserver to migitate this

    proxy.config.http.transaction_no_activity_timeout_in to a very low value would stop security scans to alert the ATS vulnerability but at the same time breaking every application which takes some time to respond

    the current timeout configs are terrible

    16:04:00 - request start
    16:05:00 - still no repsone while expected
    16:09:00 - Proxy: Inactivity Timeout

    WTF - that's likely the "Timeout 30" but i strongly doubt httpd waits 5 minutes to close the backend connection and so for whatever reason "proxy.config.http.transaction_no_activity_timeout_out" get triggerd

    20170821.16h09m03s CONNECT: could not connect to ... for 'http://example.com/timeout.php' (setting last failure time)
    20170821.16h09m03s RESPONSE: sent ... status 504 (Connection Timed Out) for 'http://example.com/timeout.php'

    and after that you pretend "could not connect [INACTIVE_TIMEOUT]" to follow up requests which would hahve been served promptly (at least only for that domain and not the other 200 on the same origin IP)

    CONFIG proxy.config.http.keep_alive_no_activity_timeout_in INT 5
    CONFIG proxy.config.http.keep_alive_no_activity_timeout_out INT 1
    CONFIG proxy.config.http.transaction_no_activity_timeout_in INT 5
    CONFIG proxy.config.http.transaction_no_activity_timeout_out INT 300
    CONFIG proxy.config.http.transaction_active_timeout_in INT 900
    CONFIG proxy.config.http.transaction_active_timeout_out INT 0
    CONFIG proxy.config.http.accept_no_activity_timeout INT 1
    CONFIG proxy.config.http.background_fill_active_timeout INT 0
    CONFIG proxy.config.http.background_fill_completed_threshold FLOAT 0.0

  6. modified the milestones: 8.0.0, 8.0.1 on Sep 26, 2018
  7. modified the milestones: 8.0.1, 8.0.2 on Dec 7, 2018
  8. modified the milestones: 8.0.2, 8.0.3 on Jan 29, 2019
  9. modified the milestones: 8.0.3, 8.1.0 on Mar 21, 2019
  10. bryancall commented on May 22, 2019

    @bryancall
    Contributor

    Please look a the comment above and lower your timeout settings to prevent this issue.

  11. removed this from the 8.1.0 milestone on May 22, 2019
  12. thelounge-zz commented on May 22, 2019

    @thelounge-zz

    lower the timeout is nonsense what did you not understand in the simple fact of "proxy.config.http.transaction_no_activity_timeout_in to a very low value would stop security scans to alert the ATS vulnerability but at the same time breaking every application which takes some time to respond"

    i treid that in production and had to raise it after a few hours becaus eit breaks all sort of real world applications, pleasse try to understand how https://httpd.apache.org/docs/2.4/mod/mod_reqtimeout.html works

    or to make it clear: there is a difference between waiting for the client which sends his requests with a few bytes every second and waiting for the backend application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions