id: joomla-registration-enabled

info:
  name: Joomla - User Registration Enabled
  author: 0x_Akoko
  severity: info
  description: |
    Detected Joomla user registration enabled, allowing anyone to create accounts on the site. If not intentionally configured, this could lead to unauthorized access or spam account creation.
  reference:
    - https://docs.joomla.org/J3.x:Users/en
    - https://www.doctorjoomla.com/15-joomla/100-disable-user-registration
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.component:"Joomla"
    fofa-query: app="Joomla"
  tags: joomla,misconfig,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?option=com_users&view=registration"

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains_all(body, "com_users", "registration", "<form")
          - contains_any(body, "jform[name]", "jform[username]", "jform[password1]", "jform[email1]")
        condition: and
# digest: 4a0a0047304502200303f606d7aeb5d603f8047955e42f3b391461a836cc8958cc70c27d346e71b8022100f971c2a1268d1e4909d989b70016bbd1fe7d17e6ff1d8d7ff956078c39f8a072:922c64590222798bb761d5b6d8e72950