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 1965243

Summary: Apache Multiviews Arbitrary Directory Listing Issue on Red Hat Capsule 6.9
Product: Red Hat Satellite Reporter: Kaushik Sajjan Agarwal <kagarwal>
Component: Foreman ProxyAssignee: Lukas Zapletal <lzap>
Status: CLOSED DUPLICATE QA Contact: Vladimír Sedmík <vsedmik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: aruzicka, inecas
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-31 07:21:49 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 Kaushik Sajjan Agarwal 2021-05-27 09:18:04 UTC
Description of problem:
 
Apache Multiviews Arbitrary Directory Listing Issue on Red Hat Capsule 6.9
 
 
Version-Release number of selected component (if applicable):
 
Red Hat Satellite 6.9
 
How reproducible:
 
Always
 
Steps to Reproduce:
 
1. Try to access the following URLs through your browser or using the curl command:
 
---
---
http://<Capsule-FQDN>/
http://<Capsule-FQDN>/?M=D
http://<Capsule-FQDN>/?M=A
curl http://<Capsule-FQDN>/
curl http://<Capsule-FQDN>/?M=D
curl http://<Capsule-FQDN>/?M=A
---
---
 
   Replace <Capsule-FQDN> with respective capsule FQDN.
 
 
Actual results:
 
---
$ curl http://rhcap69.syslab.pnq2.redhat.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/unknown.gif" alt="[   ]"></td><td><a href="content.wsgi">content.wsgi</a></td><td align="right">2021-03-11 11:00  </td><td align="right"> 74 </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="puppet_forge.wsgi">puppet_forge.wsgi</a></td><td align="right">2021-03-03 13:29  </td><td align="right">311 </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="repo_auth.wsgi">repo_auth.wsgi</a></td><td align="right">2021-03-11 11:00  </td><td align="right"> 44 </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="streamer.tac">streamer.tac</a></td><td align="right">2021-03-11 11:00  </td><td align="right">2.6K</td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="streamer_auth.wsgi">streamer_auth.wsgi</a></td><td align="right">2021-03-11 11:00  </td><td align="right">1.5K</td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="webservices.wsgi">webservices.wsgi</a></td><td align="right">2021-03-11 11:00  </td><td align="right">729 </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
</body></html>
 
$ curl http://rhcap69.syslab.pnq2.redhat.com/?M=D
<!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/unknown.gif" alt="[   ]"></td><td><a href="content.wsgi">content.wsgi</a></td><td align="right">2021-03-11 11:00  </td><td align="right"> 74 </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="puppet_forge.wsgi">puppet_forge.wsgi</a></td><td align="right">2021-03-03 13:29  </td><td align="right">311 </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="repo_auth.wsgi">repo_auth.wsgi</a></td><td align="right">2021-03-11 11:00  </td><td align="right"> 44 </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="streamer.tac">streamer.tac</a></td><td align="right">2021-03-11 11:00  </td><td align="right">2.6K</td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="streamer_auth.wsgi">streamer_auth.wsgi</a></td><td align="right">2021-03-11 11:00  </td><td align="right">1.5K</td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/unknown.gif" alt="[   ]"></td><td><a href="webservices.wsgi">webservices.wsgi</a></td><td align="right">2021-03-11 11:00  </td><td align="right">729 </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
</body></html>
---
 
 
Expected results:
 
---
$ ls -l /etc/httpd/modsecurity.d/activated_rules
ls: cannot access '/etc/httpd/modsecurity.d/activated_rules': No such file or directory
[kagarwal@kagarwal ~]$ curl http://rhcap68.syslab.pnq2.redhat.com/?M=A
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /
on this server.</p>
</body></html>
---

Comment 2 Adam Ruzicka 2021-05-27 10:42:59 UTC
Is this just about seeing the root of what apache is serving or is there some emphasis on the multiview stuff? BZ1920598 feels rather similar apart from the multiview

[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1920598

Comment 5 Adam Ruzicka 2021-05-31 07:21:49 UTC

*** This bug has been marked as a duplicate of bug 1920598 ***