[
https://issues.apache.org/jira/browse/WW-5753?focusedWorklogId=1045195&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1045195
]
ASF GitHub Bot logged work on WW-5753:
--------------------------------------
Author: ASF GitHub Bot
Created on: 01/Oct/26 16:01
Start Date: 01/Oct/26 16:01
Worklog Time Spent: 10m
Work Description: g0w6y opened a new pull request, #1983:
URL: https://github.com/apache/struts/pull/1983
Fixes [WW-5753](https://issues.apache.org/jira/browse/WW-5753)
`StrutsResourceIsolationPolicy` accepted a cross-site request that was a
navigation or a GET. The documented policy and the Fetch Metadata reference
policy require a navigation and a GET, so a cross-site form POST and cross-site
GET `fetch()`, `<script>` and `<img>` requests passed.
The check now uses `&&`. Same-origin, same-site, header-less and cross-site
top-level GET navigation requests are still accepted.
Two regression tests in `FetchMetadataInterceptorTest` fail without the
change.
Issue Time Tracking
-------------------
Worklog Id: (was: 1045195)
Remaining Estimate: 0h
Time Spent: 10m
> Reject cross-site non-GET navigations and cross-site GET subresource requests
> in the Fetch Metadata policy
> ----------------------------------------------------------------------------------------------------------
>
> Key: WW-5753
> URL: https://issues.apache.org/jira/browse/WW-5753
> Project: Struts 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 7.3.0
> Reporter: Gouri Sankar A
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> StrutsResourceIsolationPolicy accepts a cross-site request when it is a
> navigation or a GET. The documented policy and the Fetch Metadata reference
> policy require a navigation and a GET, so a cross-site form POST and
> cross-site GET fetch(), script and img requests pass.
> FetchMetadataInterceptor is enabled in the defaultStack.
> The check should combine the navigation and method conditions with &&.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)