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

Ben_9010's avatar
Ben_9010
Icon for Nimbostratus rankNimbostratus
Sep 17, 2014

iRule POST Magic?

Is it possible to apply an iRule that would watch for POSTs to URIs NOT equal to a certain value and contains specific parameters (username and password) and then on the fly, change the POST to point to a URI of our desire and then continue logging the user in ?

 

1 Reply

  • This is an abstract, but it should give you an idea of what's involved:

    when HTTP_REQUEST {    
        if { ( [HTTP::method] equals "POST" ) and not ( [HTTP::uri] equals "/foo" ) } {        
            HTTP::collect [HTTP::header Content-Length]
        }        
    }    
    when HTTP_REQUEST_DATA {      
        if { [HTTP::payload] contains "username=" } {
            HTTP::uri "/foo"            
             implement any other changes to POST request here
        }        
    }