Forum Discussion

LaurentG_53647's avatar
LaurentG_53647
Icon for Nimbostratus rankNimbostratus
Apr 24, 2015

Unable to Remove HTTP server signature - Bigip info still displayed -

Hi all,

 

I create an irule to remove some headers information (see below) unfortunately with this irule, when I am running a sslabs check, the HTTP server signature : BigIP is still displayed.

 

How can I get to have this information not to be displayed anymore )

 

IRULE:

 

comment : The purpose of this irule is to remove unnecessary HTTP header that can give too much information to attackers when HTTP_RESPONSE { HTTP::version "1.1" HTTP::header remove Server HTTP::header remove X-Powered-By HTTP::header remove X-AspNet-Version }

 

comment 20032015 - equivalent to using HTTP::redirect, but with the Server BigIP header suppressed. In this example we're redirecting our http:// request to the https:// version

 

when HTTP_REQUEST { if { [HTTP::uri] contains "/blabla/" } then { HTTP::respond 302 noserver Location "https://[HTTP::host][HTTP::uri]" } }

 

19 Replies

    • LaurentG_53647's avatar
      LaurentG_53647
      Icon for Nimbostratus rankNimbostratus
      Hi Brad I checked the parameters but I did not find this field in my http profile. just to be sure, it is located here Local Traffic ›› Profiles : Services : HTTP , right?
    • Brad_Parker_139's avatar
      Brad_Parker_139
      Icon for Nacreous rankNacreous
      Yes, what BigIP version are you running? I think it may have been introduced as a configurable option in 11.5.
    • Brad_Parker_139's avatar
      Brad_Parker_139
      Icon for Nacreous rankNacreous
      Also, do you have any other iRules attached to your HTTPS VS that could be responding to requests on the root of the site?
  • I create an irule to remove some headers information (see below) unfortunately with this irule, when I am running a sslabs check, the HTTP server signature : BigIP is still displayed.

     

    do you have trace or something like that which shows bigip header?

     

    • LaurentG_53647's avatar
      LaurentG_53647
      Icon for Nimbostratus rankNimbostratus
      To check if it is display I use the firefox plugin - Live HHTP Header. (see With the above irule, I do not see HTTP header information see trace: http://ocsp.toto.com POST / HTTP/1.1 Host: ocsp.toto.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Length: 70 Content-Type: application/ocsp-request Connection: keep-alive 0D0B0@0>0<0+ HTTP/1.1 200 OK Content-Type: application/ocsp-response Content-Length: 1386 Date: Fri, 24 Apr 2015 13:38:27 GMT Connection: Keep-Alive Age: 0 ---------------------------------------------------------- https://tst.test.com GET /blabla/ HTTP/1.1 Host: tst.test.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive HTTP/1.1 200 OK Date: Fri, 24 Apr 2015 13:38:27 GMT Cache-Control: private Content-Type: text/html; charset=utf-8 Content-Length: 58494 Set-Cookie: ASP.NET_SessionId=iVFTgqZQsxY6iSRhmLZZTQ1QR5sd9Kf4TmPh1JhJkFmqPS1Vx0q+8fIUvTWeWhtzmGwckE7ivmFIGcim1/EAAAAB;secure; Set-Cookie: TS01a40902=016657269f95f1d5f0e22028de27e17da0fc1d0b73c437d9b8205b8e5a2839fdeeac552df0c0edd399b312407b5a6104d727f9f3e4; Path=/ ---------------------------------------------------------- BUT I still can see it when I execute the Qualys SSL server check -https://www.ssllabs.com/ssltest/ The result of the check is displaying HTTP server signature : BigIP I wonder where this information can be find. Regards
  • I create an irule to remove some headers information (see below) unfortunately with this irule, when I am running a sslabs check, the HTTP server signature : BigIP is still displayed.

     

    do you have trace or something like that which shows bigip header?

     

    • LaurentG_53647's avatar
      LaurentG_53647
      Icon for Nimbostratus rankNimbostratus
      To check if it is display I use the firefox plugin - Live HHTP Header. (see With the above irule, I do not see HTTP header information see trace: http://ocsp.toto.com POST / HTTP/1.1 Host: ocsp.toto.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Length: 70 Content-Type: application/ocsp-request Connection: keep-alive 0D0B0@0>0<0+ HTTP/1.1 200 OK Content-Type: application/ocsp-response Content-Length: 1386 Date: Fri, 24 Apr 2015 13:38:27 GMT Connection: Keep-Alive Age: 0 ---------------------------------------------------------- https://tst.test.com GET /blabla/ HTTP/1.1 Host: tst.test.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive HTTP/1.1 200 OK Date: Fri, 24 Apr 2015 13:38:27 GMT Cache-Control: private Content-Type: text/html; charset=utf-8 Content-Length: 58494 Set-Cookie: ASP.NET_SessionId=iVFTgqZQsxY6iSRhmLZZTQ1QR5sd9Kf4TmPh1JhJkFmqPS1Vx0q+8fIUvTWeWhtzmGwckE7ivmFIGcim1/EAAAAB;secure; Set-Cookie: TS01a40902=016657269f95f1d5f0e22028de27e17da0fc1d0b73c437d9b8205b8e5a2839fdeeac552df0c0edd399b312407b5a6104d727f9f3e4; Path=/ ---------------------------------------------------------- BUT I still can see it when I execute the Qualys SSL server check -https://www.ssllabs.com/ssltest/ The result of the check is displaying HTTP server signature : BigIP I wonder where this information can be find. Regards
  • To check if it is display I use the firefox plugin - Live HHTP Header. (see With the above irule, I do not see HTTP header information

    see trace: 
    http://ocsp.toto.com
    
    POST / HTTP/1.1
    Host: ocsp.toto.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Content-Length: 70
    Content-Type: application/ocsp-request
    Connection: keep-alive
    0D0B0@0>0<0 +
    HTTP/1.1 200 OK
    Content-Type: application/ocsp-response
    Content-Length: 1386
    Date: Fri, 24 Apr 2015 13:38:27 GMT
    Connection: Keep-Alive
    Age: 0
    ----------------------------------------------------------
    https://tst.test.com
    
    GET /blabla/ HTTP/1.1
    Host: tst.test.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Connection: keep-alive
    
    HTTP/1.1 200 OK
    Date: Fri, 24 Apr 2015 13:38:27 GMT
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 58494
    Set-Cookie: ASP.NET_SessionId=iVFTgqZQsxY6iSRhmLZZTQ1QR5sd9Kf4TmPh1JhJkFmqPS1Vx0q+8fIUvTWeWhtzmGwckE7ivmFIGcim1/EAAAAB;secure;
    Set-Cookie: TS01a40902=016657269f95f1d5f0e22028de27e17da0fc1d0b73c437d9b8205b8e5a2839fdeeac552df0c0edd399b312407b5a6104d727f9f3e4; Path=/
    ----------------------------------------------------------
    

    BUT I still can see it when I execute the Qualys SSL server check -https://www.ssllabs.com/ssltest/ The result of the check is displaying HTTP server signature : BigIP I wonder where this information can be find.

    Regards

  • To check if it is display I use the firefox plugin - Live HHTP Header. (see With the above irule, I do not see HTTP header information

    see trace: 
    http://ocsp.toto.com
    
    POST / HTTP/1.1
    Host: ocsp.toto.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Content-Length: 70
    Content-Type: application/ocsp-request
    Connection: keep-alive
    0D0B0@0>0<0 +
    HTTP/1.1 200 OK
    Content-Type: application/ocsp-response
    Content-Length: 1386
    Date: Fri, 24 Apr 2015 13:38:27 GMT
    Connection: Keep-Alive
    Age: 0
    ----------------------------------------------------------
    https://tst.test.com
    
    GET /blabla/ HTTP/1.1
    Host: tst.test.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Connection: keep-alive
    
    HTTP/1.1 200 OK
    Date: Fri, 24 Apr 2015 13:38:27 GMT
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 58494
    Set-Cookie: ASP.NET_SessionId=iVFTgqZQsxY6iSRhmLZZTQ1QR5sd9Kf4TmPh1JhJkFmqPS1Vx0q+8fIUvTWeWhtzmGwckE7ivmFIGcim1/EAAAAB;secure;
    Set-Cookie: TS01a40902=016657269f95f1d5f0e22028de27e17da0fc1d0b73c437d9b8205b8e5a2839fdeeac552df0c0edd399b312407b5a6104d727f9f3e4; Path=/
    ----------------------------------------------------------
    

    BUT I still can see it when I execute the Qualys SSL server check -https://www.ssllabs.com/ssltest/ The result of the check is displaying HTTP server signature : BigIP I wonder where this information can be find.

    Regards

  • To check if it is display I use the firefox plugin - Live HHTP Header. (see With the above irule, I do not see HTTP header information

    see trace: 
    

    http://ocsp.toto.com

    POST / HTTP/1.1 Host: ocsp.toto.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Length: 70 Content-Type: application/ocsp-request Connection: keep-alive 0D0B0@0>0<0+ HTTP/1.1 200 OK Content-Type: application/ocsp-response Content-Length: 1386 Date: Fri, 24 Apr 2015 13:38:27 GMT Connection: Keep-Alive Age: 0 ---------------------------------------------------------- https://tst.test.com

    GET /blabla/ HTTP/1.1 Host: tst.test.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive

    HTTP/1.1 200 OK
    Date: Fri, 24 Apr 2015 13:38:27 GMT
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 58494
    Set-Cookie: ASP.NET_SessionId=iVFTgqZQsxY6iSRhmLZZTQ1QR5sd9Kf4TmPh1JhJkFmqPS1Vx0q+8fIUvTWeWhtzmGwckE7ivmFIGcim1/EAAAAB;secure;
    Set-Cookie: TS01a40902=016657269f95f1d5f0e22028de27e17da0fc1d0b73c437d9b8205b8e5a2839fdeeac552df0c0edd399b312407b5a6104d727f9f3e4; Path=/
    ----------------------------------------------------------
    

    BUT I still can see it when I execute the Qualys SSL server check -https://www.ssllabs.com/ssltest/ The result of the check is displaying HTTP server signature : BigIP I wonder where this information can be find.

    Regards

  • To check if it is display I use the firefox plugin - Live HHTP Header. (see With the above irule, I do not see HTTP header information

    see trace: 
    

    http://ocsp.toto.com

    POST / HTTP/1.1 Host: ocsp.toto.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Length: 70 Content-Type: application/ocsp-request Connection: keep-alive 0D0B0@0>0<0+ HTTP/1.1 200 OK Content-Type: application/ocsp-response Content-Length: 1386 Date: Fri, 24 Apr 2015 13:38:27 GMT Connection: Keep-Alive Age: 0 ---------------------------------------------------------- https://tst.test.com

    GET /blabla/ HTTP/1.1 Host: tst.test.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive

    HTTP/1.1 200 OK
    Date: Fri, 24 Apr 2015 13:38:27 GMT
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 58494
    Set-Cookie: ASP.NET_SessionId=iVFTgqZQsxY6iSRhmLZZTQ1QR5sd9Kf4TmPh1JhJkFmqPS1Vx0q+8fIUvTWeWhtzmGwckE7ivmFIGcim1/EAAAAB;secure;
    Set-Cookie: TS01a40902=016657269f95f1d5f0e22028de27e17da0fc1d0b73c437d9b8205b8e5a2839fdeeac552df0c0edd399b312407b5a6104d727f9f3e4; Path=/
    ----------------------------------------------------------
    

    BUT I still can see it when I execute the Qualys SSL server check -https://www.ssllabs.com/ssltest/ The result of the check is displaying HTTP server signature : BigIP I wonder where this information can be find.

    Regards

    Heading
  • Try editing your HTTP profile and blank out the "Server Agent Name" field.

     

    • LaurentG_53647's avatar
      LaurentG_53647
      Icon for Nimbostratus rankNimbostratus
      Hi Brad I checked the parameters but I did not find this field in my http profile. just to be sure, it is located here Local Traffic ›› Profiles : Services : HTTP , right?
    • Brad_Parker's avatar
      Brad_Parker
      Icon for Cirrus rankCirrus
      Yes, what BigIP version are you running? I think it may have been introduced as a configurable option in 11.5.
    • Brad_Parker's avatar
      Brad_Parker
      Icon for Cirrus rankCirrus
      Also, do you have any other iRules attached to your HTTPS VS that could be responding to requests on the root of the site?