Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

JeecgBoot Vulnerability Scanner Plugin for Woodpecker

A comprehensive vulnerability scanner plugin for JeecgBoot applications, ported from JeecgGo project.

Features

This plugin detects the following vulnerabilities in JeecgBoot applications:

SQL Injection Vulnerabilities

  • 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注入

Remote Code Execution (RCE)

  • testConnection - jmreport/testConnection 远程命令执行
  • loadTableData - loadTableData SSTI模板注入
  • queryFieldBySql - queryFieldBySql SSTI模板注入
  • sendMsg - sendMsg Freemarker模板注入

Information Disclosure

  • querySysUser - 用户信息泄露
  • checkOnlyUser - 用户存在性检测
  • httptrace - 用户token泄露
  • dataSource_list - 数据库账号密码泄露

File Upload Vulnerabilities

  • jmreportUpload - jmreport/upload 任意文件上传

Other Vulnerabilities

  • fileTree - 目录遍历漏洞
  • passwordChange - 任意用户密码重置
  • uploadImgByHttp - SSRF漏洞

Installation

  1. Build the plugin:
cd jeecg-boot-vuldb
mvn clean package
  1. Copy the generated JAR file to Woodpecker's plugins directory:
cp target/jeecg-boot-vuldb-1.0.0.jar /path/to/woodpecker/plugins/
  1. Restart Woodpecker to load the plugin.

Usage

Vulnerability Scanning (POC)

  1. Open Woodpecker and navigate to the vulnerability detection module
  2. Select "JeecgBoot综合漏洞检测" plugin
  3. Enter the target URL (e.g., http://target/jeecg-boot/)
  4. (Optional) Set the X-Access-Token if testing authenticated vulnerabilities
  5. Click "Start Scan"

Exploitation

The plugin provides three exploitation methods for RCE vulnerabilities:

1. loadTableData RCE

  • Target: jmreport/loadTableData
  • Requires: No authentication (in most cases)
  • Parameters: cmd (command to execute)

2. queryFieldBySql RCE

  • Target: jmreport/queryFieldBySql
  • Requires: No authentication (in most cases)
  • Parameters: cmd (command to execute)

3. sendMsg RCE

  • Target: sys/message/sysMessageTemplate/sendMsg
  • Requires: Authentication token (X-Access-Token)
  • Parameters: cmd (command to execute), token (authentication token)

Technical Details

Built-in POC Configuration

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.

Detection Methods

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., "数据库连接成功")

Architecture

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

Disclaimer

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.

Credits

  • Original JeecgGo project
  • Woodpecker SDK

License

This plugin is provided for educational and authorized security testing purposes only.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages