• Resolved Micha

    (@michaing)


    As I read in other topics, Security Ninja seems to have issues to correctly determine whether the admin page is served via HTTPS, if Cloudflare is used. Since for larger public sites, Cloudflare has become quite common, I suggest to address this issue.

    First of all, the warning text seems to be misleading, since the connection protocol could be checked trivially via $_SERVER[‘HTTPS’] or $_SERVER[‘SERVER_PORT’] or the whole access URL, or by parsing the response parameters of a dedicated request that could be made. So if Cloudflare is affecting the check, the certificate itself seems to be checked somehow? Probably the warning could contain more precisely what about the HTTPS connection or certificate did not pass.

    Also the warning suggest to use define(‘FORCE_SSL_ADMIN’, true); to force HTTPS for the admin panel, but adding that option does not satisfy the warning, i.e. it still appears on subsequent tests.

    While we use Cloudflare, also the origin server has a valid HTTPS certificate, so verifying that via local/loopback requests as well as remote requests should both show a valid certificate, successful and enforced (redirect + HSTS + preload on both, Cloudflare + origin server) HTTPS connection.

    I’m happy to perform some debugging or logs, if it helps to narrow down or fix the underlying issue of the false warning :).

    Best regards,

    Micha

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lars Koudal

    (@lkoudal)

    Hello Micha

    Thank you for very detailed feedback – that is definitely something we are going to fix. Many of the issues in the past have been trailed to working on local sites or similar issues.

    We are going to dig deeper and find a solution for this issue, thanks again 😀

    Thread Starter Micha

    (@michaing)

    Thanks for the quick response. Let me know if I can help in any way :).

    Plugin Author Lars Koudal

    (@lkoudal)

    Hello @michaing

    The new release is out, thank you for making us aware. Please try out the new version 🙂

    Thread Starter Micha

    (@michaing)

    Hi @lkoudal,

    HTTPS is now detected, issue solved, many thanks :)!

    Best regards,

    Micha

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fix SSL check with Cloudflare’ is closed to new replies.