Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2125370

Summary: Apache Multiviews Arbitrary Directory Listing Issue on Red Hat Capsule 6.11
Product: Red Hat Satellite Reporter: Satyajit Das <sadas>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED MIGRATED QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.11.0CC: ahumbe, akapse, arsingh, aruzicka, bkearney, ehelms, ekohlvan, jbhatia, kyoshida, mkalyat, pdwyer, pmendezh, ramsingh, rcavalca, rlavi, saydas, wpinheir
Target Milestone: UnspecifiedKeywords: MigratedToJIRA, Triaged, UserExperience, WorkAround
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-06 12:30:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Satyajit Das 2022-09-08 18:19:57 UTC
Description of problem:

Apache Multiviews Arbitrary Directory Listing Issue on Red Hat Capsule 6.11 

Version-Release number of selected component (if applicable):

Capsule 6.11

How reproducible:

100%


Steps to Reproduce:
-------------------
1.Try to access the Capsule URL through your browser or using the curl command:

 curl https://capsule.example.com/?M=A



Actual results:
--------------

Nessus was able to exploit the issue using the following request :

curl https://capsule.example.com/?M=A

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /</title>
 </head>
 <body>
<h1>Index of /</h1>
  <table>
   <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="cgi-bin/">cgi-bin/</a></td><td align="right">2022-03-22 11:36  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="html/">html/</a></td><td align="right">2022-03-22 11:36  </td><td align="right">  - </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
</body></html>


Expected results:

This Nessus vulnerability (CVE-2001-0731 ) should be fixed.


Additional info:

Comment 1 Ewoud Kohl van Wijngaarden 2022-09-09 10:54:55 UTC
Technical details:

Today we use /var/www as a document root. This is incorrect and we should use the Pulp static root (as we do with the HTTPS vhost).

It was introduced in https://github.com/theforeman/puppet-foreman_proxy_content/commit/76e2a6852d1d2ca33935ccf8a6ab69992c32ec1d and https://github.com/theforeman/puppet-foreman_proxy_content/blob/15616eb59ba64e8d97440575e7c120f3c2e214d5/spec/acceptance/content_standalone_mirror_spec.rb#L35-L39 has a TODO to resolve it.

After that we should also look into disabling directory listing.

A workaround for this is creating an empty index file:

    touch /var/www/index.html

That doesn't solve any possible security issues, but it tricks naive vulnerability scanners.

Comment 3 Rafael Cavalcanti 2022-11-22 15:03:01 UTC
*** Bug 2144854 has been marked as a duplicate of this bug. ***

Comment 6 Ewoud Kohl van Wijngaarden 2022-11-22 20:59:49 UTC
(In reply to Ewoud Kohl van Wijngaarden from comment #1)
> A workaround for this is creating an empty index file:
> 
>     touch /var/www/index.html
> 
> That doesn't solve any possible security issues, but it tricks naive
> vulnerability scanners.

It was pointed out that the cgi-bin and html directories are also visible, so a more correct workaround is:

    touch /var/www/index.html /var/www/cgi-bin/index.html /var/www/html/index.html

Comment 11 Brad Buckingham 2023-10-30 11:29:29 UTC
Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set.

Comment 16 Eric Helms 2024-06-06 12:30:48 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.

Comment 17 Eric Helms 2024-07-01 13:12:54 UTC
*** Bug 2130747 has been marked as a duplicate of this bug. ***

Comment 18 Red Hat Bugzilla 2024-10-30 04:25:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days