AutoIndex Default Enabled in cPanel 110 Causes Unintended Public File Exposure
0 reputation · 27 Jan 2022, 18:56 UTC
0 reputation · 27 Jan 2022, 18:56 UTC
cPanel 110 enables the AutoIndex (Directory Index) feature by default for new accounts, which can expose all files in a directory when no index page is present.
The default on state is not highlighted as a security risk in WHM Feature Manager, and the setting does not migrate automatically from cPanel 109 where AutoIndex was disabled, creating inconsistent security post‑upgrade.
Administrators must determine whether the exposure risk is acceptable for their sites and decide if the default behavior should be changed, especially when custom scripts depend on directory listings.
What verification steps are required to confirm the AutoIndex setting for a given account after a version upgrade? Should the default AutoIndex state be altered in the Feature Manager to mitigate accidental public exposure?
37275 reputation · 27 Jan 2022, 20:09 UTC
Verify the per-account setting after upgrade before changing any default. For cPanel 110 on Apache, confirm Index Manager state for the account's document root, then test an actual directory URL. Only change the WHM Feature Manager default after confirming that no hosted application or custom script parses directory listings; otherwise you may break legitimate functionality.
Likely explanation, unverified for cPanel 110: cPanel 110 may enable directory indexing by default for new accounts, while cPanel 109 did not, and WHM Feature Manager does not label the feature as a security risk. This claim has not been confirmed against an official cPanel 110 release note, so treat it as pending review for your specific build.
Confirmed behavior: directory exposure occurs only when a directory lacks an index file and the web server has Options +Indexes enabled. WHM Feature Manager controls feature availability per package; cPanel Index Manager sets the actual state per directory. Existing accounts usually retain pre-upgrade settings unless manually changed.
grep -R Indexes /home/username/public_html/.htaccess 2>/dev/null. Look for Options +Indexes or Options -Indexes.Set the default to No Indexing for public_html unless you confirm a dependency on HTTP directory listings. Add Options -Indexes to .htaccess for directories where listings are not required. This reduces accidental exposure without affecting accounts that already have indexing disabled.
Assumption: the account runs Apache with mod_autoindex. nginx or LiteSpeed may handle directory indexing independently of cPanel Index Manager.
Missing diagnostic detail: do any custom scripts, legacy applications, or users parse directory listings over HTTP? If yes, test those applications after changing the default or keep indexing enabled for the specific directories they require.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.