Skip to content

docs: list wildcard substitution into class= as a known non-finding - #2155

Open
lukaszlenart wants to merge 1 commit into
mainfrom
docs/threat-model-wildcard-class
Open

lukaszlenart wants to merge 1 commit into
mainfrom
docs/threat-model-wildcard-class

Conversation

@lukaszlenart

@lukaszlenart lukaszlenart commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Adds a §11a entry to THREAT_MODEL.md for wildcard values substituted into an action mapping's class= 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 as OUT-OF-MODEL: application-responsibility:

  • the template is developer-written configuration, which §6 treats as trusted;
  • no configuration shipped with the framework substitutes into class=;
  • the resulting name is resolved as a class or bean and instantiated, never evaluated.

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

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant