在长亭科技举办的 Real World CTF 中,国外安全研究员 Andrew Danau 在解决一道 CTF 题目时发现,向目标服务器 URL 发送 %0a 符号时,服务返回异常,疑似存在漏洞。

在使用一些有错误的Nginx配置的情况下,通过恶意构造的数据包,即可让PHP-FPM执行任意代码。

参考链接:

https://bugs.php.net/bug.php?id=78599
https://lab.wallarm.com/php-remote-code-execution-0-day-discovered-in-real-world-ctf-exercise/
https://github.com/neex/phuip-fpizdam

漏洞复现:

使用phuip-fpizdam-linux,发送数据包:

PHP-FPM 远程代码执行漏洞(CVE-2019-11043)

 

 可见,这里已经执行成功。

PHP-FPM 远程代码执行漏洞(CVE-2019-11043)

 

注意,因为php-fpm会启动多个子进程,在访问/index.php?a=id时需要多访问几次,以访问到被污染的进程。 

相关文章:

  • 2021-09-26
  • 2022-12-23
  • 2021-06-05
  • 2021-10-17
  • 2021-09-10
  • 2021-07-30
  • 2021-11-22
  • 2021-05-20
猜你喜欢
  • 2021-08-05
  • 2021-08-30
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
相关资源
相似解决方案