Files
codeql/java/ql/test/stubs
Salah Baddou f5131f9bc6 Java: Add XXE sink model for Woodstox WstxInputFactory
`com.ctc.wstx.stax.WstxInputFactory` overrides `createXMLStreamReader`,
`createXMLEventReader` and `setProperty` from `XMLInputFactory`, so the
existing `XmlInputFactory` model in `XmlParsers.qll` does not match calls
where the static receiver type is `WstxInputFactory` (or its supertype
`org.codehaus.stax2.XMLInputFactory2`). Woodstox is vulnerable to XXE in
its default configuration, so these missed sinks were false negatives in
`java/xxe`.

This adds a scoped framework model under
`semmle/code/java/frameworks/woodstox/WoodstoxXml.qll` (registered in the
`Frameworks` module of `XmlParsers.qll`) that recognises these calls as
XXE sinks and treats the factory as safe when both
`javax.xml.stream.supportDTD` and
`javax.xml.stream.isSupportingExternalEntities` are disabled — mirroring
the existing `XMLInputFactory` safe-configuration logic.
2026-04-17 18:46:51 +04:00
..
2020-04-28 11:26:43 +02:00
2023-03-01 09:48:33 +01:00
2021-06-18 15:54:13 +08:00
2023-03-10 12:35:13 +01:00
2024-02-12 13:49:45 +00:00
2019-08-17 16:31:18 +01:00
2023-03-15 12:43:45 +01:00
2023-03-15 12:43:45 +01:00
2022-09-08 17:38:21 +02:00
2021-06-08 15:12:04 +01:00
2023-07-31 11:13:17 +02:00
2022-08-15 12:08:14 +01:00
2023-12-13 11:15:27 +01:00
2021-11-03 17:26:13 +01:00
2025-12-09 14:13:02 +00:00
2019-08-17 18:57:50 +01:00

The stubs in this directory are derived from various open-source projects, and used to test that the relevant APIs are correctly modelled. Where a disclaimer or third-party-notice is required, this is included in the top-level directory for each particular library.