Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##############################################
- # Name: stop_range_CVE-2015-1635
- # Description: This iRule will remove the Range header when detecting large ranges in it.
- ##############################################
- when HTTP_REQUEST {
- # remove Range requests for CVE-2015-1635 if the request uses large ranges
- if { ([HTTP::header exists "Range"]) and ([HTTP::header "Range"] matches_regex {bytes\s*=.*([0-9]){10,}.*})}
- {
- HTTP::header remove Range
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement