id: wp-bricks-builder-theme

info:
  name: WordPress Bricks Builder Theme Version
  author: Anonymous
  severity: info
  description: |
    - Checks for Bricks Builder Theme versions.
  reference:
    - https://0day.today/exploit/description/39489
  classification:
    cpe: cpe:2.3:a:bricksbuilder:bricks:*:*:*:*:wordpress:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: bricksbuilder
    product: bricks
    publicwww-query: "/wp-content/themes/bricks/"
  tags: wordpress,theme,wp-theme,wp,bricks,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/bricks/readme.txt"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Bricks - Visual Website Builder"

      - type: regex
        part: body
        regex:
          - "Stable tag:([ 0-9.]+)"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100bf26c3e2ad79683620d82b313dc83de066efdd2a5a1466d89bb783cfd44827eb022100857e49a1e32be454e788d22563c1b3abc236503dca96e79361db3824518fe9d6:922c64590222798bb761d5b6d8e72950