Repository navigation
tentacle: rgw: Check if HTTP_X_AMZ_COPY_SOURCE header is empty - #66027
Conversation
The issue was that the `HTTP_X_AMZ_COPY_SOURCE` header could be present but empty (i.e., an empty string rather than NULL). The code only checked if the pointer was not NULL, but didn't verify that the string had content. When an empty string was passed to RGWCopyObj::parse_copy_location(), it would eventually try to access name_str[0] on an empty string, causing a crash. Fixes: https://tracker.ceph.com/issues/72669 Signed-off-by: Suyash Dongre <[email protected]> (cherry picked from commit bef59f1)
|
I have a question around this? name_str could be full of whitespaces eg. " " during empty() check? any possibility to do boost::trim() before empty() check? |
|
Removing needs-qa until we have notifiaction/multisite fixes backported to tentacle. |
|
jenkins test make check |
|
we had a CVE for a very similar crash bug, i think this backport should be prioritized |
|
FYI, pr testing is in progress... |
|
Pr testing completed and approved by @ivancich, More details in : https://tracker.ceph.com/issues/76009. |
|
jenkins test api |
backport tracker: https://tracker.ceph.com/issues/73607
backport of #65159
parent tracker: https://tracker.ceph.com/issues/72669
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh