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 1370584

Summary: Capsule satellite reverse proxy allows everything including /pub and the UI
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: Foreman ProxyAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: stbenjam
Target Milestone: UnspecifiedKeywords: Triaged
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: 2018-09-04 18:06:06 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:
Bug Depends On:    
Bug Blocks: 1122832    

Description Peter Vreman 2016-08-26 16:21:54 UTC
Description of problem:
The Capsule reverse proxy to the Satellite is not limited to e.g. the API only. It allows full access all possible the Satellite data. This includes also the /var/www/html/pub directory under /pub. And also the UI.

A secret file in the pub on the satellite 

[crash] root@li-lc-1578:~# cat /var/www/html/pub/secret_dir/secret_file
secret file

On a client through capsule li-lc-1589 i can download the file from li-lc-1578

[crash] root@li-lc-1442:~# curl -k https://li-lc-1589.hag.hilti.com:8443/pub/secret_dir/secret_file
secret file


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


How reproducible:


Steps to Reproduce:
1. Create a file in Satellite
mkdir -p /var/www/html/pub/secret_dir
echo "secret file" > /var/www/html/pub/secret_dir/secret_file
2. Download the file through the capsule https://capsule.com:8443/pub/secret_dir/secret_file.txt
3.

Actual results:


Expected results:


Additional info:

Comment 1 Peter Vreman 2016-08-26 16:27:24 UTC
Additional there is a special case for pulp-https that also does a reverse proxy for katello/api/repositories:

[crash] root@li-lc-1589:/etc/httpd/conf.d# grep -R ProxyPass
28-katello-reverse-proxy.conf:  ProxyPass / https://li-lc-1578.hag.hilti.com/
28-katello-reverse-proxy.conf:  ProxyPassReverse / /
28-katello-reverse-proxy.conf:  ProxyPassReverse / https://li-lc-1578.hag.hilti.com/
05-pulp-https.conf:  ProxyPass /katello/api/repositories/ https://li-lc-1578.hag.hilti.com/katello/api/repositories/
05-pulp-https.conf:    ProxyPassReverse https://li-lc-1578.hag.hilti.com/

Comment 5 Bryan Kearney 2018-09-04 18:06:06 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.