Files
codeql/java/ql/lib/semmle/code/java/frameworks/YamlBeans.qll
Owen Mansel-Chan fdd1e3fefe Use MaD models for unsafe deserialization sinks when possible
Many of the unsafe deserialization sinks have to stay defined in QL
because they have custom logic that cannot be expressed in MaD models.
2025-07-16 14:42:07 +01:00

27 lines
670 B
Plaintext

/**
* Provides classes and predicates for working with the YamlBeans framework.
*/
overlay[local?]
module;
import java
/**
* The class `com.esotericsoftware.yamlbeans.YamlReader`.
*/
class YamlBeansReader extends RefType {
YamlBeansReader() { this.hasQualifiedName("com.esotericsoftware.yamlbeans", "YamlReader") }
}
/**
* DEPRECATED: Now modeled using data extensions instead.
*
* A method with the name `read` declared in `com.esotericsoftware.yamlbeans.YamlReader`.
*/
deprecated class YamlBeansReaderReadMethod extends Method {
YamlBeansReaderReadMethod() {
this.getDeclaringType() instanceof YamlBeansReader and
this.getName() = "read"
}
}