I have used the securimage PHP library to show a captcha on my form. But when I'm scanning my page for vulnerabilities using Arachni scanner, it shows the following message and it's trying to scan the same page with some different values repeatedly:
I have used the Captcha code in the form with the following method:
<?php require_once('libs/classes/securimage/securimage.php'); echo(Securimage::getCaptchaHtml()); ?>
Arachni scanner is showing the following message:
A modern web application will be reliant on several different programming languages.
Because all server-side code should be executed by the server, it should never be seen by the client. However, in some scenarios, it is possible that:
The server-side code has syntax errors and therefore is not executed by the server but is instead sent to the client. Using crafted requests it is possible to force the server into displaying the source code of the application without executing it.
As the server-side source code often contains sensitive information, such as database connection strings or details into the application workflow, this can be extremely risky.
Cyber-criminals will attempt to discover pages that either accidentally or forcefully allow the server-side source code to be disclosed, to assist in discovering further vulnerabilities or sensitive information.
Arachni has detected server-side source code within the server’s response.
(False positives may occur when requesting binary files such as images (.JPG or .PNG) and may require manual verification.)
I have tried to pass the session_id() in parameter to validate the class method. I also used another parameter to stop directly showing the captcha image in the URL but with no luck. What should I do to fix this problem?