For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

MHO's avatar
MHO
Icon for Nimbostratus rankNimbostratus
Sep 18, 2014

Base64 decoding

Hello,

is it possible to decode this type of a soap post request on LTM. Section base64Content needs to be decoded. Any idea for an iRule?

POST /upload/documents HTTP/1.1
    Accept-Encoding: gzip,deflate
    Content-Type: text/xml;charset=UTF-8
    SOAPAction: ""
    Content-Length: 623
    Host: avtestsoap
    Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

    soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:doc="http://xxxxxx/documents"
       soapenv:Header/
       soapenv:Body
          doc:storeDocumentRequest
             doc:nameEicar/doc:name
             doc:base64ContentWDVPIVAlQEFQWzRcUFpYNTQoUF4pN0NDKTd9JEVJQ0FSLVNUQU5EQVJELUFOVElWSVJVUy1URVNULUZJTEUhJEgrSCo=/doc:base64Content
             !--Optional:--
             doc:mimeTypetext/xml/doc:mimeType
             !--Optional:--
             doc:descriptionVirus Sig/doc:description
          /doc:storeDocumentRequest
       /soapenv:Body
    /soapenv:Envelope

1 Reply

  • Use an appropriate HTTP event handler

    something like this:

        when HTTP_REQUEST {
        set header HTTP::header "XYZ" 
       log local0. "This is the header before b64 decoding"
        set headerb64decode  [b64decode $header]
       log local0. "This is the header b64 encoded