uuWAF icon indicating copy to clipboard operation
uuWAF copied to clipboard

waf.form["FORM"]无法获取到form表单

Open zyufstudio opened this issue 6 months ago • 3 comments

Image

zyufstudio avatar Jul 15 '25 05:07 zyufstudio

插件中需要将过滤阶段放在req_post_filter阶段才能获取完整的api

Safe3 avatar Jul 15 '25 08:07 Safe3

Image validate_login函数是从req_post_filter阶段调用的,但还是报form找不到

zyufstudio avatar Jul 15 '25 08:07 zyufstudio

上面配置是在nginx配置文件下载站点:/api/log/ 后,再用uuwaf代理端口出去的。 server { listen 8084; server_name localhost;

location /api/log/ {
    alias /var/www/api/Logs/;
    if ($request_filename ~* ^.*?\.(html|doc|pdf|zip|docx|txt)$) {
        add_header Content-Disposition attachment;
        add_header Content-Type application/octet-stream;
    }
	sendfile on;   # 开启高效文件传输模式
	autoindex on;  # 开启目录文件列表
	autoindex_exact_size on;  # 显示出文件的确切大小,单位是bytes
	autoindex_localtime on;  # 显示的文件时间为文件的服务器时间
	charset utf-8,gbk;  # 避免中文乱码
  }

}

zyufstudio avatar Jul 15 '25 08:07 zyufstudio