Skip to content

Pihole 6 webserver exposes code from other files on regular webserver #2349

@Tone866

Description

@Tone866

Versions

  • Pi-hole: 6.0.5
  • AdminLTE: 6.0.2
  • FTL: 6.0.4

Platform

  • OS and version: Ubuntu 24.04
  • Platform: x86 bare metal

Expected behavior

the pihole webserver should only display or execute files in the defined subpath

Actual behavior / bug

default webroot is a /var/www/html/ so if I open the pihole webserver over https://127.0.0.1:8443 it exposes the code of my index.php. This happens to all files on the webserver.
The pihole webserver should be blocking everything, which isn't in the defined subpath or redirect to the subpath.

Steps to reproduce

Steps to reproduce the behavior:

  1. open the pihole webserver without subpath

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions