Repository navigation
docs: list wildcard substitution into class= as a known non-finding - #2155
Open
lukaszlenart wants to merge 1 commit into
Open
lukaszlenart wants to merge 1 commit into
lukaszlenart wants to merge 1 commit into
Conversation
A `{N}` value in a wildcard mapping's class= attribute comes from the
request path and may contain dots, so a request can reach any class or
Spring bean that fits the developer's template. The template is
developer-trusted configuration, no shipped configuration does this, and
the name is never evaluated, so reports of it are application
responsibility. The entry names the cases that stay in model: shipped
configuration, a value reaching expression evaluation (S2-015), and a
bypass of the method-name gate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a §11a entry to
THREAT_MODEL.mdfor wildcard values substituted into an action mapping'sclass=attribute.In a mapping such as
<action name="*" class="com.example.{1}Action">, the{N}value comes from the request path and may contain., which the default action-name filter allows. A request can then reach any class or Spring bean whose name fits the template's prefix and suffix. The entry classifies such reports asOUT-OF-MODEL: application-responsibility:class=;It also names the cases that stay in model: shipped configuration doing this, a wildcard value reaching expression evaluation by the framework (S2-015), and a substituted method that runs despite strict method invocation and the allowed-methods list.
Relation to #2115
This is proposed as an alternative to #2115 (WW-5839), which adds a character check on substituted class-name values. If #2115 is merged instead, this entry has to be rewritten: the class slot would then have its own control, and a bypass of it would be
VALID: control-not-enforced.The site's wildcard-mappings page opened with an example that substitutes into
class=. apache/struts-site#381 replaces those examples and adds a warning.🤖 Generated with Claude Code