This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Blocked fonts through WAF Advanced Protection (Form Hardening)

Hi everyone,

We are running a Sophos UTM 9.310-11 on AWS EC2. To protect our web application we are using the Web Application Firewall with the Advanced Protection profile.

In our application we are using direct serving of fonts and fonts with the following MIM-Types.

.ttf          application/octet-stream
.woff     font/x-woff
.woff2   application/font-woff2

When we are trying to access the fonts using query parameters e.g. …

                https://...webfont.woff?v=4.3.0

… the WAF blocks the request with the following entry in the log file.

2015:05:22-00:57:52 n***1 reverseproxy: id="0299" srcip="6*.**.**.*2" localip="1*.**.*.**0" size="256" user="-" host="6*.**.**.*2" method="GET" statuscode="403" reason="form hardening" extra="Received unhardened form data" exceptions="-" time="54745" url="/lib/font-awesome/fonts/fontawesome-webfont.woff" server="REF_RevFroHsanextgen" referer="-" cookie="-" set-cookie="-"

Even though the documentation says the following …

Note – Form hardening affects all files with a HTTP content type of text/* or *xml*, where * is a wildcard. Make sure that other file types, e.g. binary files, have the correct HTTP content type, otherwise they may get corrupted by the form hardening feature.


Anybody came across the same or similar issue?

P.S.: Removing the query parameters in the string avoids the blocking. However, it doesn't help us with our application.

Thanks

Andreas


This thread was automatically locked due to age.
Parents
  • Hi, Andreas, and welcome to the User BB!

    This looks wrong to me, too.  What happens if you create a form-hardening exception for /lib/font-awesome/* ?

    If that workaround doesn't help, you should ask your reseller to open a case with Sophos Support.  If this is during the free trial period, they will set you up with a pre-sales engineer, and they also know these answers or can quickly get help from those that do.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Hi, Andreas, and welcome to the User BB!

    This looks wrong to me, too.  What happens if you create a form-hardening exception for /lib/font-awesome/* ?

    If that workaround doesn't help, you should ask your reseller to open a case with Sophos Support.  If this is during the free trial period, they will set you up with a pre-sales engineer, and they also know these answers or can quickly get help from those that do.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
No Data