diff --git a/http/technologies/magento-version-detect.yaml b/http/technologies/magento-version-detect.yaml new file mode 100644 index 0000000000..7abeefa6dd --- /dev/null +++ b/http/technologies/magento-version-detect.yaml @@ -0,0 +1,86 @@ +id: magento-version-detect + +info: + name: Magento Version Detect + author: sullo,dogancanbakir + severity: info + description: | + Magento version detection via version module and copyright text. + reference: + - https://www.magento.com/ + - https://magento.stackexchange.com/a/62966 + classification: + cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N + cvss-score: 0.0 + cwe-id: CWE-200 + metadata: + verified: true + shodan-query: http.component:"Magento" + tags: tech,magento,cms + +requests: + - raw: + - | + GET /magento_version HTTP/1.1 + Host: {{Hostname}} + + - | + GET /skin/frontend/default/default/css/styles.css HTTP/1.1 + Host: {{Hostname}} + + matchers-condition: or + matchers: + + - type: regex + regex: + - '^Magento/.*$' + + - type: word + name: magento-1.9 + words: + - "Copyright (c) 2014 Magento Inc." + + - type: word + name: magento-1.8 + words: + - "Copyright (c) 2013 Magento Inc." + + - type: word + name: magento-1.7 + words: + - "Copyright (c) 2012 Magento Inc." + + - type: word + name: magento-1.6 + words: + - "Copyright (c) 2011 Magento Inc." + + - type: word + name: magento-1.4.1-1.5 + words: + - "Copyright (c) 2010 Magento Inc." + + - type: word + name: magento-1.4.0 + words: + - "Copyright (c) 2009 Irubin Consulting Inc." + + - type: word + name: magento-1.0-1.3 + words: + - "Copyright (c) 2008 Irubin Consulting Inc." + + extractors: + - type: regex + part: body + regex: + - "Magento.*$" + + - type: regex + part: body + group: 1 + name: version + regex: + - 'Magento\/([0-9.]+) ' + +# Enhanced by dcb 2022/11/29 \ No newline at end of file diff --git a/workflows/magento-workflow.yaml b/workflows/magento-workflow.yaml index c4a76cbdf7..b62e750416 100644 --- a/workflows/magento-workflow.yaml +++ b/workflows/magento-workflow.yaml @@ -6,6 +6,6 @@ info: description: A simple workflow that runs all Magento related nuclei templates on a given target. workflows: - - template: http/technologies/magento-detect.yaml + - template: http/technologies/magento-version-detect.yaml subtemplates: - - tags: magento \ No newline at end of file + - template: http/technologies/magento-eol.yaml \ No newline at end of file