Bug 2189266
| Summary: | get "you don't have permission to access" error when trying to access files with spaces in them | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Brian Johnson <mbjohn> |
| Component: | httpd | Assignee: | Luboš Uhliarik <luhliari> |
| Status: | CLOSED MIGRATED | QA Contact: | rhel-cs-infra-services-qe <rhel-cs-infra-services-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.9 | CC: | jorton, luhliari |
| Target Milestone: | rc | Keywords: | MigratedToJIRA |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| 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: | 2023-09-21 19:06:14 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
Brian Johnson
2023-04-24 15:16:08 UTC
Hi -- I was wondering if there is any movement on this issue. We have a customer who currently has to have apache versionlocked to deal with this problem, making their server vulnerable with an older version of apache. thanks. Brian, can you file a customer ticket for it? It would help expedite it. hey Joe, no problem at all, I'll be glad to! Case 03548836 has been submitted (https://access.redhat.com/support/cases/#/case/03548836) Hello Brian, have you tried newer package than httpd-2.4.6-98.el7_9.7.x86_64 ? (In reply to Luboš Uhliarik from comment #6) > Hello Brian, > > have you tried newer package than httpd-2.4.6-98.el7_9.7.x86_64 ? Hi Luboš! I did some testing for my support ticket with Red Hat and when I did the testing I was updating to 2.4.6-99.el7_9.1. The issue was still prevalent there. As it turns out, the person I was working with at Red Hat pointed me to https://access.redhat.com/solutions/7016850 which provided the explanation and the fix -- --- Root Cause This is a change in behavior from the CVE-2023-25690 fix. The rewrite rule results in mod_rewrite seeing characters in the URI as a plain ' ' and the update rejects such a character for protection. Resolution Add the B flag to a proxy rewrite using a back reference to add a query string parameter to ensure any space or special character is escaped, for example: RewriteRule "^/(.*)" "http://localhost:8080/app?param=$1" [P,L,QSA,B] --- On the server we were having issues with, there was a line, RewriteRule ^(.+)$ index.php?path=$1&%{QUERY_STRING} [L] that was apparently causing the issue. By changing the line to: RewriteRule ^(.+)$ index.php?path=$1&%{QUERY_STRING} [L,B] Users were then able to download the files with spaces in them correctly. I believe this properly takes care of the issue. Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. 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 "RHEL-" 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. |