如果不方便升级nginx版本,可用以下替代措施解决:
将所有未命名捕获组改为命名捕获组即可
如
location ~ ^/api/(.*)$ {
return 200 $1;
}
改为
location ~ ^/api/(?<api_path>.*)$ {
return 200 $api_path;
}
如不涉及使用rewrite模块的未命名捕获组,那么此次漏洞与你无关!
相关消息:https://t.me/zaihuapd/41374
NA Nanase的随记 @nanaselog · 4.1K subscribers
location ~ ^/api/(.*)$ {
return 200 $1;
}
location ~ ^/api/(?<api_path>.*)$ {
return 200 $api_path;
}