Forum Discussion

IT_Support_-_EC's avatar
IT_Support_-_EC
Icon for Nimbostratus rankNimbostratus
Jul 13, 2015

[BIG-IP 4000s] Failed to protect Crosse-Site Request Forgery

Dear F5 Team,

 

Our team did PoC of Cross-Site Request Forgery but it seemed that WAF cannot protect this attack. Our team said

 

"For the CSRF protection, F5 will generate its own Javascript to browser. The problem is when I viewsource the webpage, all F5 JS are commented out, so it cannot work"

 

Could you help us check how to make WAF against CSRF work?

 

Thank you

 

15 Replies

  • Thank you for your comment Mr. Boneyard,

     

    After reading your comments, our team got a different opinion about the fact of no protecting a request that doesn't carry data and would like to share it with you (his tone may be a bit strong but please think of him as your close friend OK! Mr. Boneyard ^_^)

     

    "The request without parameter doesn't carry data ? Hey man, you're very wrong about this. How's about data coming from HTTP headers ? like cookie, HTTP referer ? does that make sense ?

     

    Let's talk about an application that have one link to delete the account: /delete.php, user can access this link to delete their account. Application recognized user based on their session_id (send along with their cookie). So, user just access this link (without any parameters) to delete their account. Hey, tell me, guy, does it "carry data" ? And how to protect CSRF on this link ?"

     

    Thank you

     

  • sure a HTTP GET / POST without parameters does indeed carry some data, but in general not enough on itself to perform transactions. that is normally done with parameters and that is what CSRF protection is designed for.

     

    if you design your application as described above you have a situation (although not very common in my opinion) where the F5 CRSF protection doesn't protect you.

     

    that is a limitation of the product. if you want a full proof solution specific for your situation you gotta build it yourself at lots of effort. a solution like F5 ASM will protect you with less effort but upto a point, it can't cover every possible situation.

     

  • Thank you for your comment Mr. Boneyard,

     

    Our team got what we wanted to know through your message and would like thank you for making us understand and helping us along the way with this case.

     

    Thank you so much

     

    • boneyard's avatar
      boneyard
      Icon for MVP rankMVP
      you are welcome, you can flag your question as answered if you feel it is.