Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php/xdebug-rce fails to build #461

Open
dbu9 opened this issue Sep 18, 2023 · 1 comment
Open

php/xdebug-rce fails to build #461

dbu9 opened this issue Sep 18, 2023 · 1 comment

Comments

@dbu9
Copy link

dbu9 commented Sep 18, 2023

docker-compose build
[+] Building 21.3s (5/5) FINISHED                                                                                                                                                                 
 => [php internal] load .dockerignore                                                                                                                                                        0.2s
 => => transferring context: 2B                                                                                                                                                              0.0s
 => [php internal] load build definition from Dockerfile                                                                                                                                     0.2s
 => => transferring dockerfile: 1.16kB                                                                                                                                                       0.0s
 => [php internal] load metadata for docker.io/vulhub/php:7.1.12-apache                                                                                                                      2.2s
 => [php 1/2] FROM docker.io/vulhub/php:7.1.12-apache@sha256:8393e8d79cc4cd7a84cb2aa30a608a17f084423c9c886f325458287c345ca308                                                               17.8s
 => => resolve docker.io/vulhub/php:7.1.12-apache@sha256:8393e8d79cc4cd7a84cb2aa30a608a17f084423c9c886f325458287c345ca308                                                                    0.0s
 => => sha256:c266283065ed384496a48d17b330b2fe844c74558ded1397d54b3ad1ecf61699 81.85MB / 81.85MB                                                                                            12.5s
 => => sha256:8393e8d79cc4cd7a84cb2aa30a608a17f084423c9c886f325458287c345ca308 3.04kB / 3.04kB                                                                                               0.0s
 => => sha256:85b1f47fba49da65256f07c8790542a3880e9216f9c491965040f35ce2c6ca7a 52.60MB / 52.60MB                                                                                            12.9s
 => => sha256:ec99b99d75b15e7271800232999805dbbd2b22b461813e170fd6c625a494eabc 183B / 183B                                                                                                   2.1s
 => => sha256:10fffe5b286c8a5ee2f000ecfb1e8431ec27927c8c92e9606dc3fec2a5f6546e 12.34kB / 12.34kB                                                                                             0.0s
 => => sha256:1acd20a385dfd8dea7297ea6658d0ff43d4ddee1b02044378bb03efff7133afd 3.01MB / 3.01MB                                                                                               9.5s
 => => sha256:82d806755bbb5d3592be294a0a581e53b9bd25ee60186509409442a440872203 1.25kB / 1.25kB                                                                                              10.2s
 => => sha256:0a68419027d0100a424f424b6cd160e00702be46f47525e633328cffd746d496 428B / 428B                                                                                                  10.7s
 => => sha256:1d54cf8a3cefda521fb3196ee218b091bc09e4330b1cc9dda39801c2f73bf350 230B / 230B                                                                                                  11.1s
 => => sha256:7f625202d40e3571f24dfceba5d6eace6a429eabd3369d6b68b891f81c3464d1 482B / 482B                                                                                                  11.7s
 => => sha256:8843c299328266605afdeb110fe4111af56ce837a8f5487431127c679e49b5f9 12.55MB / 12.55MB                                                                                            16.4s
 => => sha256:9c70831205092e20b5ad6d995043ba16c7eab50d121158d5aa244bb3a25d65b3 501B / 501B                                                                                                  13.0s
 => => extracting sha256:85b1f47fba49da65256f07c8790542a3880e9216f9c491965040f35ce2c6ca7a                                                                                                    0.9s
 => => sha256:a359774becb80ff9ac2beb9b60bab98fe5d442bf927b49faae117902479973a2 14.02MB / 14.02MB                                                                                            15.1s
 => => sha256:90486878aecff91f32f254a70f34de891dbb075c8756b6c686d289869eeb4232 2.18kB / 2.18kB                                                                                              13.4s
 => => sha256:d3a3e2cc7e65dd1cf6c597a9a85aef4aa2340305d9099c8b47a4776f512fea3b 902B / 902B                                                                                                  14.5s
 => => extracting sha256:c266283065ed384496a48d17b330b2fe844c74558ded1397d54b3ad1ecf61699                                                                                                    1.0s
 => => extracting sha256:ec99b99d75b15e7271800232999805dbbd2b22b461813e170fd6c625a494eabc                                                                                                    0.0s
 => => extracting sha256:1acd20a385dfd8dea7297ea6658d0ff43d4ddee1b02044378bb03efff7133afd                                                                                                    0.1s
 => => extracting sha256:82d806755bbb5d3592be294a0a581e53b9bd25ee60186509409442a440872203                                                                                                    0.0s
 => => extracting sha256:0a68419027d0100a424f424b6cd160e00702be46f47525e633328cffd746d496                                                                                                    0.0s
 => => extracting sha256:1d54cf8a3cefda521fb3196ee218b091bc09e4330b1cc9dda39801c2f73bf350                                                                                                    0.0s
 => => extracting sha256:7f625202d40e3571f24dfceba5d6eace6a429eabd3369d6b68b891f81c3464d1                                                                                                    0.0s
 => => extracting sha256:8843c299328266605afdeb110fe4111af56ce837a8f5487431127c679e49b5f9                                                                                                    0.0s
 => => extracting sha256:9c70831205092e20b5ad6d995043ba16c7eab50d121158d5aa244bb3a25d65b3                                                                                                    0.0s
 => => extracting sha256:a359774becb80ff9ac2beb9b60bab98fe5d442bf927b49faae117902479973a2                                                                                                    0.2s
 => => extracting sha256:90486878aecff91f32f254a70f34de891dbb075c8756b6c686d289869eeb4232                                                                                                    0.0s
 => => extracting sha256:d3a3e2cc7e65dd1cf6c597a9a85aef4aa2340305d9099c8b47a4776f512fea3b                                                                                                    0.0s
 => ERROR [php 2/2] RUN a2enmod rewrite &&     pecl install xdebug-2.5.5 &&     docker-php-ext-enable xdebug &&     echo "xdebug.default_enable = 1" >> /usr/local/etc/php/conf.d/xdebug.in  1.0s
------
 > [php 2/2] RUN a2enmod rewrite &&     pecl install xdebug-2.5.5 &&     docker-php-ext-enable xdebug &&     echo "xdebug.default_enable = 1" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.remote_enable = 1" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.remote_handler = dbgp" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.remote_autostart = 0" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.remote_connect_back = 1" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.remote_port = 9000" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.remote_host = 127.0.0.1" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.profiler_enable=0" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.profiler_enable_trigger=1" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "xdebug.profiler_output_dir="/tmp"" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo "date.timezone = "UTC"" >> /usr/local/etc/php/conf.d/timezone.ini:
0.339 Enabling module rewrite.
0.342 To activate the new configuration, you need to run:
0.342   service apache2 restart
0.727 No releases available for package "pecl.php.net/xdebug"
0.727 install failed
------
failed to solve: process "/bin/sh -c a2enmod rewrite &&     pecl install xdebug-2.5.5 &&     docker-php-ext-enable xdebug &&     echo \"xdebug.default_enable = 1\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.remote_enable = 1\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.remote_handler = dbgp\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.remote_autostart = 0\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.remote_connect_back = 1\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.remote_port = 9000\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.remote_host = 127.0.0.1\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.profiler_enable=0\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.profiler_enable_trigger=1\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"xdebug.profiler_output_dir=\\\"/tmp\\\"\" >> /usr/local/etc/php/conf.d/xdebug.ini &&     echo \"date.timezone = \\\"UTC\\\"\" >> /usr/local/etc/php/conf.d/timezone.ini" did not complete successfully: exit code: 1```
@dbu9
Copy link
Author

dbu9 commented Sep 18, 2023

Solution:

-FROM vulhub/php:7.1.12-apache
+FROM vulhub/php:7.1-apache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant