# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'rack' require 'contrast/utils/hash_digest' require 'contrast/utils/string_utils' require 'contrast/agent/assess/rule/response/base_rule' module Contrast module Agent module Assess module Rule module Response # These rules check the content of the HTTP Response to determine if something was set incorrectly or # insecurely in it. module BodyRule protected HTML_PROP = 'html'.cs__freeze START_PROP = 'start'.cs__freeze END_PROP = 'end'.cs__freeze FORM_START_REGEXP = /