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: | NEW --- | 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 | ||
| Target Release: | --- | ||
| 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: | 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. |