
WhiteBox CMS 분석
CoMisSion은 CMS 설정을 빠르게 분석하는 도구입니다. 이 도구는:
🔥 주의: CoMisSion은 소스 코드 분석을 통해 취약점을 찾는 도구가 아닙니다. 취약점은 wpvulndb와 같은 공개 데이터베이스에서 수집됩니다. 새로운 취약점을 찾는 것은 이 도구의 목적이 아닙니다.
완전한 보고서는 다음 형식으로 생성할 수 있습니다:
이 도구는 Linux와 Windows에서 테스트되었습니다. 출력 오염을 방지하려면 Windows에서 --no-color 옵션을 설정하는 것이 좋습니다.
./commision.py -c wordpress -d /cms_dir -o report.xlsx -t XLSX
이 도구는 최소 python3.6이 필요합니다.
git clone https://github.com/Intrinsec/comission
pip install -r requirements.txt
usage: comission.py [-h] -d DIR -c CMS [-o FILE] [-t TYPE] [--skip-core]
[--skip-plugins] [--skip-themes] [--no-color] [-f CONF]
[--log LOGFILE] [--wp-content WP_CONTENT]
[--plugins-dir PLUGINS_DIR] [--themes-dir THEMES_DIR]
[--major VERSION_MAJOR] [-v VERSION]
[--wpvulndb-token WPVULNDB_TOKEN] [--debug]
CoMisSion analyse a CMS and plugins used.
optional arguments:
-h, --help show this help message and exit
-d DIR, --dir DIR CMS root directory
-c CMS, --cms CMS CMS type (drupal, wordpress)
-o FILE, --output FILE
Path to output file
-t TYPE, --type TYPE Type of output (CSV, XLSX, JSON, STDOUT). Default to
XLSX.
--skip-core Set this to skip core analysis
--skip-plugins Set this to skip plugins analysis
--skip-themes Set this to skip themes analysis
--no-color Do not use colors in the output.
-f CONF, --file CONF Configuration file. See example.conf.
--log LOGFILE Log output in given file.
--wp-content WP_CONTENT
Set this to force the wp-content directory location.
--plugins-dir PLUGINS_DIR
Set this to force the plugins directory location.
--themes-dir THEMES_DIR
Set this to force the themes directory location.
--major VERSION_MAJOR
Specify the core major version (eg. 7, 8) when using
--skip-core arg. Works only for Drupal.
-v VERSION, --version VERSION
Specify the core full version (eg. 5.5).
--wpvulndb-token WPVULNDB_TOKEN
Set a token to request wpvulndb API.
--debug Print debug message to help identify errors.
🔥 WordPress 취약점을 얻으려면 --wpvulndb_token 인수를 설정해야 합니다. wpvulndb 계정으로 토큰을 받을 수 있습니다.
구성 파일을 제공할 수 있습니다. 참고로 example.conf를 확인하세요.
아직 공식 이미지를 게시하지 않았습니다. Docker로 도구를 사용하려면 이미지를 빌드할 수 있습니다. 프로젝트 폴더에서 다음 명령으로 빌드:
docker build -t isec/comission .
그런 다음 다음과 같이 실행:
docker run -it --rm -v /TARGET_PATH/:/cms_path/ -v /OUTPUT_DIR/:/output/ isec/comission -d /cms_path/ -c drupal -o /output/test_docker.xlsx -t XLSX
"TARGET_PATH"와 "OUTPUT_DIR" 경로를 폴더에 맞게 변경해야 합니다.
단위 테스트는 tests 폴더에 있습니다. 테스트를 실행하기 전에 drupal과 wordpress 하위 디렉토리를 포함하는 test-data-set 디렉토리와 최소한 wpvulndb_token 값을 포함하는 test.conf 파일을 생성해야 합니다.
Paul Mars (Intrinsec)
Etienne Boursier (Intrinsec)의 아이디어 기반
이 도구는 GPLv3 라이선스로 배포됩니다. 하지만 주의하세요. 이 도구는 WordPress 핵심 및 플러그인 정보를 수집하기 위해 wpvulndb API를 사용합니다.