A comprehensive vulnerability scanner plugin for JeecgBoot applications, ported from JeecgGo project.
This plugin detects the following vulnerabilities in JeecgBoot applications:
queryTableData- /sys/dict/queryTableData SQL注入qurestSql- /jmreport/qurestSql SQL注入getTotalData- /onlDragDatasetHead/getTotalData SQL注入show- /jmreport/show SQL注入getDictItemsByTable- /sys/ng-alain/getDictItemsByTable SQL注入 (前台未授权)getDictItemsByTableBackSql- getDictItemsByTable 后台SQL注入check- /sys/duplicate/check SQL注入 (时间盲注)column- column参数SQL注入parseSql- parseSql SQL注入
testConnection- jmreport/testConnection 远程命令执行loadTableData- loadTableData SSTI模板注入queryFieldBySql- queryFieldBySql SSTI模板注入sendMsg- sendMsg Freemarker模板注入
querySysUser- 用户信息泄露checkOnlyUser- 用户存在性检测httptrace- 用户token泄露dataSource_list- 数据库账号密码泄露
jmreportUpload- jmreport/upload 任意文件上传
fileTree- 目录遍历漏洞passwordChange- 任意用户密码重置uploadImgByHttp- SSRF漏洞
- Build the plugin:
cd jeecg-boot-vuldb
mvn clean package- Copy the generated JAR file to Woodpecker's plugins directory:
cp target/jeecg-boot-vuldb-1.0.0.jar /path/to/woodpecker/plugins/- Restart Woodpecker to load the plugin.
- Open Woodpecker and navigate to the vulnerability detection module
- Select "JeecgBoot综合漏洞检测" plugin
- Enter the target URL (e.g., http://target/jeecg-boot/)
- (Optional) Set the X-Access-Token if testing authenticated vulnerabilities
- Click "Start Scan"
The plugin provides three exploitation methods for RCE vulnerabilities:
- Target: jmreport/loadTableData
- Requires: No authentication (in most cases)
- Parameters: cmd (command to execute)
- Target: jmreport/queryFieldBySql
- Requires: No authentication (in most cases)
- Parameters: cmd (command to execute)
- Target: sys/message/sysMessageTemplate/sendMsg
- Requires: Authentication token (X-Access-Token)
- Parameters: cmd (command to execute), token (authentication token)
All POC configurations are embedded in the plugin (PocConfig.java), eliminating the need for external configuration files. This is achieved by converting the original Config.yaml into Java static data structures.
The plugin uses various detection methods:
- JSON Response Analysis: Parse JSON responses and check for specific patterns
- Time-based Detection: Detect SQL injection through response time delays (>5 seconds)
- Pattern Matching: Check for specific strings in responses (e.g., "数据库连接成功")
jeecg-boot-vuldb/
├── pom.xml
└── src/main/java/me/gv7/woodpecker/plugin/
├── WoodpeckerPluginManager.java # Plugin entry point
├── VulPluginInfo.java # Plugin metadata and registration
├── pocs/
│ └── JeecgBootAllPoc.java # Main vulnerability scanner
├── exploits/
│ ├── LoadTableDataExploit.java # loadTableData RCE exploit
│ ├── QueryFieldBySqlExploit.java # queryFieldBySql RCE exploit
│ └── SendMsgExploit.java # sendMsg RCE exploit
└── utils/
├── PocConfig.java # Built-in POC definitions
├── HttpUtils.java # HTTP request utilities
└── VulnDetector.java # Vulnerability detection logic
IMPORTANT: This tool is for authorized security testing only. Only use it for:
- Penetration testing with explicit written permission
- Security research
- CTF challenges
- Educational purposes
Unauthorized use of this tool against systems you don't own or have permission to test is illegal.
- Original JeecgGo project
- Woodpecker SDK
This plugin is provided for educational and authorized security testing purposes only.