id: wordpress-rdf-user-enum

info:
  name: Wordpress RDF User Enumeration
  author: r3dg33k
  severity: info
  description: Leaked Wordpress RDF leads to User Emumeration.
  metadata:
    max-request: 1
  tags: wordpress,enum

http:
  - method: GET
    path:
      - '{{BaseURL}}/feed/rdf'

    host-redirects: true

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "application/rdf+xml"

      - type: word
        part: body
        words:
          - "<rdf:RDF"
          - "<dc:creator>"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<dc\:creator><\!\[CDATA\[(.*?)\]\]></dc'
# digest: 4a0a0047304502207632fd44ca378bbf59e176a8c8425fb67a24af24b88eee0a8976556b7aa271e1022100d799fe266806647f745dcd0d6cdaf5e3d9f8b09f81ea4151e2095707ad3780bb:922c64590222798bb761d5b6d8e72950