Details
References
- CWE-22 — https://cwe.mitre.org/data/definitions/22.html
- CWE-94 — https://cwe.mitre.org/data/definitions/94.html
- Affected source (tag
v9.15.1):copier/_settings.py:141-146(prefix match),copier/_settings.py:149-152(_normalize),copier/_main.py:293(trust gate). - Documented prefix behavior:
docs/settings.md("Locations ending with/will be matched as prefixes"). https..normalization: libcurl removes dot segments by default (CURLOPT_PATH_AS_ISdefaults to off) — https://curl.se/libcurl/c/CURLOPT_PATH_AS_IS.html- Novelty: distinct from copier's published advisories, which concern filesystem read/write traversal in rendered output; this is an authorization bypass in the
trustsetting's URL matching. The flawed match is identical between releasedv9.15.1and currentmasterHEAD, and unchanged since the trust-prefix feature was introduced inv9.5.0(originallycopier/settings.py, commit71358ed; renamed tocopier/_settings.pyin the v9.12.0 refactor).