我的web应用程序有一个接受html的表单。
浏览器发送带有json主体的HTTP/PUT ajax调用,格式如下:
{
"de": "",
"en": "<p>Evil Corp will process the Data that is strictly necessary\\nand reserves the right to delete or anonymize immediately any Data that\\nis not necessary.</p>\\n<p>from</p>",
"es": "",
"fr": "",
"it": ""
},
"notes": {
"de": "",
"en": "",
"es": "",
"fr": "",
"it": ""
}
}当内容包含以下字符串时,AWS WAF出现问题:
<p>Evil Corp will process the Data that is strictly necessary
and reserves the right to delete or anonymize immediately any Data that
is not necessary.</p>
<p>from</p>WAF返回403错误,请求被拒绝。
如果内容包含其他字符串,如:
<p>Evil Corp will process the Data that is strictly necessary
and reserves the right to delete or anonymize immediately any Data that
is not necessary.</p>
<p>hello world</p>两者都被认为是我的应用程序的有效内容。
WAF配置如下: AWS经典WAF的“AWS OWASP集的网络安全云管理规则”。
我想了解:
F 212
发布于 2022-03-10 18:08:17
您是否启用了AWS上的访问日志记录?
启用它之后,您可以在日志中获取规则阻止您的内容的信息。然后,你可以回答你的下列问题。
以下是您的参考资料:
https://docs.aws.amazon.com/waf/latest/developerguide/logging-management.html
:
https://stackoverflow.com/questions/71424874
复制相似问题