【问题标题】:Google Cloud Armor rule partial URL encodedGoogle Cloud Armor 规则部分 URL 编码
【发布时间】:2022-10-06 03:33:23
【问题描述】:

我添加了一条新规则,用于拒绝对 \'actuator\' 的所有外部请求。(弹簧端点)如下:

在我使用部分解码 URL 之前,该规则按预期工作,例如:

<host>/%61ctuator

您是否知道任何方法或更好的方法来定义类似阻止编码 URL 的规则?

  • 我认为必须为该示例创建一个规则。规则是不先解码的字符串比较。

标签: spring-boot-actuator google-cloud-armor


【解决方案1】:

Cloud Armor recently released 额外的operator functionality 将允许在给定的 CEL 规则匹配中对属性进行 URL 解码。

例如:

request.path.lower().urlDecode().contains("/actuator")

【讨论】:

    猜你喜欢
    • 2020-06-09
    • 2020-12-02
    • 2023-03-20
    • 1970-01-01
    • 2021-10-14
    • 2019-03-29
    • 1970-01-01
    • 2021-08-10
    • 2020-10-09
    相关资源
    最近更新 更多