id: CVE-2024-46310

info:
  name: FXServer < v9601 - Information Exposure
  author: s4e-io
  severity: medium
  description: |
    Incorrect Access Control in FXServer version's v9601 and prior, for CFX.re FiveM, allows unauthenticated users to modify and read userdata via exposed api endpoint.
  impact: |
    Unauthenticated users can access and modify sensitive userdata including player identifiers and connection information.
  remediation: |
    Update FXServer to a version later than v9601 that patches the access control vulnerability.
  reference:
    - https://github.com/UwUtisum/CVE-2024-46310
    - https://vulmon.com/vulnerabilitydetails?qid=CVE-2024-46310
    - https://vulners.com/githubexploit/D31ED8EC-1E21-54F9-AD42-778DAFBC8B4E
  classification:
    epss-score: 0.83002
    epss-percentile: 0.9927
  metadata:
    verified: true
    max-request: 1
    vendor: fxserver
    product: fxserver
  tags: cve,cve2024,fxserver,info-leak,vuln

http:
  - raw:
      - |
        GET /players.json HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body,"endpoint", "id", "identifiers", "name", "ping")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a0048304602210097f4a87063e6bcf1c3a179b7967dde28557479f472e70ca26697f9e54430824a022100e1f06302951a30acfef7fd2399d1bda4fc1a2c0490fe93ecb223c627bbc6a986:922c64590222798bb761d5b6d8e72950