Skip to main content

File Uploads Cause 403 Errors

Comments

3 comments

  • HappyFeat

    I think I've found the answer - apparently AWS Web Application Firewall blocks everything larger that 8kb by default ... now to become an expert at AWS Security Groups!

    8 KB is not enough: why WAFs can’t protect APIs - Security Boulevard

    0
  • quietFinn

    Do this in root command line (assuming you have root access):
    tail -f /etc/apache2/logs/error_log
    when trying to upload.

    Do you see any errors there?

     

    0
  • HappyFeat

    No, it wasn't even reaching the server, the 403 error was coming from the AWS WAF.

    I've set the "SizeRestrictions_BODY" rule to "Override:allow" and the uploads are fine now - just did a 50mb upload with no problems.

    Just another trap to be aware of when hosting a cPanel server at AWS

     

    0

Please sign in to leave a comment.