Azure Cloudflare阻止了我们的;子域之间“;由于X-ORIGINAL-url标头(CVE-2018-14773),url重写为403
问题:如何删除Azure ARR中的X-ORIGINAL-URL标题 由于X-ORIGINAL-url头(CVE-2018-14773),Cloudflare使用403阻止了我们的“子域间”url重写 我们正在使用applicationHost.xdt文件并在web.config中重写规则 规则是:Azure Cloudflare阻止了我们的;子域之间“;由于X-ORIGINAL-url标头(CVE-2018-14773),url重写为403,azure,url-rewriting,cloudflare,arr,azure-webapps,Azure,Url Rewriting,Cloudflare,Arr,Azure Webapps,问题:如何删除Azure ARR中的X-ORIGINAL-URL标题 由于X-ORIGINAL-url头(CVE-2018-14773),Cloudflare使用403阻止了我们的“子域间”url重写 我们正在使用applicationHost.xdt文件并在web.config中重写规则 规则是: <rule name="Rule" stopProcessing="true"> <match url="^(ab|cd|
<rule name="Rule" stopProcessing="true">
<match url="^(ab|cd|ef|gh)/(.*)" />
<conditions logicalGrouping="MatchAny">
<add matchType="Pattern" input="{HTTP_HOST}" pattern="^sub\.domain\.com$" />
</conditions>
<serverVariables>
<set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" />
<set name="HTTP_ACCEPT_ENCODING" value="" />
</serverVariables>
<action type="Rewrite" url="https://sub.{R:1}.domain.com/{R:2}" appendQueryString="false" logRewrittenUrl="true" />
</rule>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<proxy xdt:Transform="InsertIfMissing" enabled="true" preserveHostHeader="false" reverseRewriteHostInResponseHeaders="false" />
</system.webServer>
<location path="%XDT_SITENAME%" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing">
<httpProtocol xdt:Transform="InsertIfMissing">
<customHeaders xdt:Transform="InsertIfMissing">
<add xdt:Transform="Remove" />
</customHeaders>
</httpProtocol>
<rewrite xdt:Transform="InsertIfMissing">
<allowedServerVariables xdt:Transform="InsertIfMissing" >
<add name="HTTP_X_ORIGINAL_HOST" xdt:Transform="InsertIfMissing" />
<add name="HTTP_HOST" xdt:Transform="InsertIfMissing" />
<add name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)" />
<add name="HTTP_ACCEPT_ENCODING" xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)" />
</allowedServerVariables>
</rewrite>
</system.webServer>
</location>
</configuration>
{
"key": "rule_message",
"value": "Drupal, Wordpress - Anomaly:Header:X-Original-Url, Anomaly:Header:X-Rewrite-Url - CVE:CVE-2018-14773"
},