GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #17424 from RasmusWL/active-threat-model-source · github/codeql@381ea93

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • csharp/ql
    • lib
      • change-notes
        • 2024-09-10-ActiveThreatModelSource.md
      • semmle/code/csharp/security
        • auth
          • InsecureDirectObjectReferenceQuery.qll
        • dataflow
          • CodeInjectionQuery.qll
          • CommandInjectionQuery.qll
          • ConditionalBypassQuery.qll
          • ExternalAPIsQuery.qll
          • LDAPInjectionQuery.qll
          • LogForgingQuery.qll
          • MissingXMLValidationQuery.qll
          • ReDoSQuery.qll
          • RegexInjectionQuery.qll
          • ResourceInjectionQuery.qll
          • SqlInjectionQuery.qll
          • TaintedPathQuery.qll
          • UnsafeDeserializationQuery.qll
          • UrlRedirectQuery.qll
          • XMLEntityInjectionQuery.qll
          • XPathInjectionQuery.qll
          • XSSQuery.qll
          • flowsources
            • FlowSources.qll
    • src
      • Security Features
        • CWE-091
          • XMLInjection.ql
        • CWE-114
          • AssemblyPathInjection.ql
        • CWE-134
          • UncontrolledFormatString.ql
      • experimental
        • CWE-099
          • TaintedWebClientLib.qll
        • CWE-918
          • RequestForgery.qll
    • test/library-tests/dataflow
      • flowsources
        • local
          • commandargs
            • CommandArgs.ql
            • CommandLineFlow.ql
          • registry
            • Registry.ql
        • stored
          • database/dapper
            • DatabaseSources.ql
          • file
            • Files.ql
      • threat-models
        • Test.qll
  • go/ql
    • lib
      • change-notes
        • 2024-09-10-ActiveThreatModelSource.md
      • semmle/go/security
        • CommandInjectionCustomizations.qll
        • ExternalAPIs.qll
        • FlowSources.qll
        • LogInjectionCustomizations.qll
        • MissingJwtSignatureCheckCustomizations.qll
        • OpenUrlRedirectCustomizations.qll
        • ReflectedXssCustomizations.qll
        • RequestForgeryCustomizations.qll
        • SqlInjectionCustomizations.qll
        • TaintedPathCustomizations.qll
        • UncontrolledAllocationSizeCustomizations.qll
        • XPathInjectionCustomizations.qll
    • src
      • Security/CWE-640
        • EmailInjectionCustomizations.qll
      • experimental
        • CWE-090
          • LDAPInjection.qll
        • CWE-203
          • Timing.ql
        • CWE-287
          • ImproperLdapAuthCustomizations.qll
        • CWE-369
          • DivideByZero.ql
        • CWE-74
          • DsnInjection.ql
        • CWE-79
          • HTMLTemplateEscapingPassthrough.ql
        • CWE-807
          • SensitiveConditionBypass.qll
        • CWE-840
          • ConditionalBypass.ql
        • CWE-918
          • SSRF.qll
        • CWE-942
          • CorsMisconfiguration.ql
        • frameworks
          • DecompressionBombs.qll
    • test/library-tests/semmle/go/dataflow
      • ThreatModels
        • Test.qll
      • flowsources/local
        • environment
          • test.ql
        • file
          • test.ql
  • java/ql
    • lib
      • change-notes
        • 2024-09-10-ActiveThreatModelSource.md
      • semmle/code/java
        • dataflow
          • FlowSources.qll
          • internal
            • TaintTrackingUtil.qll
        • security
          • AndroidIntentRedirectionQuery.qll
          • ArbitraryApkInstallation.qll
          • ArithmeticTaintedQuery.qll
          • CommandLineQuery.qll
          • ConditionalBypassQuery.qll
          • ExternalAPIs.qll
          • ExternallyControlledFormatStringQuery.qll
          • FragmentInjectionQuery.qll
          • GroovyInjectionQuery.qll
          • ImproperValidationOfArrayConstructionQuery.qll
          • ImproperValidationOfArrayIndexQuery.qll
          • InsecureBeanValidationQuery.qll
          • IntentUriPermissionManipulationQuery.qll
          • JexlInjectionQuery.qll
          • JndiInjectionQuery.qll
          • LdapInjectionQuery.qll
          • LogInjectionQuery.qll
          • MvelInjectionQuery.qll
          • NumericCastTaintedQuery.qll
          • OgnlInjectionQuery.qll
          • PartialPathTraversalQuery.qll
          • RequestForgeryConfig.qll
          • ResponseSplittingQuery.qll
          • SensitiveResultReceiverQuery.qll
          • SpelInjectionQuery.qll
          • SqlInjectionQuery.qll
          • TaintedEnvironmentVariableQuery.qll
          • TaintedPathQuery.qll
          • TaintedPermissionsCheckQuery.qll
          • TemplateInjection.qll
          • TrustBoundaryViolationQuery.qll
          • UnsafeAndroidAccessQuery.qll
          • UnsafeContentUriResolutionQuery.qll
          • UnsafeDeserializationQuery.qll
          • UrlForwardQuery.qll
          • UrlRedirectQuery.qll
          • XPathInjectionQuery.qll
          • XsltInjectionQuery.qll
          • XssQuery.qll
          • XxeRemoteQuery.qll
          • regexp
            • PolynomialReDoSQuery.qll
            • RegexInjectionQuery.qll
    • src/experimental/Security/CWE
      • CWE-020
        • Log4jJndiInjection.ql
      • CWE-036
        • OpenStream.ql
      • CWE-073
        • FilePathInjection.ql
      • CWE-078
        • CommandInjectionRuntimeExec.ql
      • CWE-089
        • MyBatisAnnotationSqlInjection.ql
        • MyBatisMapperXmlSqlInjection.ql
      • CWE-094
        • BeanShellInjection.ql
        • JShellInjection.ql
        • JakartaExpressionInjectionLib.qll
        • JythonInjection.ql
        • ScriptInjection.ql
        • SpringViewManipulationLib.qll
      • CWE-200
        • InsecureWebResourceResponse.ql
      • CWE-208
        • NonConstantTimeCheckOnSignatureQuery.qll
      • CWE-346
        • UnvalidatedCors.ql
      • CWE-352
        • JsonpInjection.ql
        • JsonpInjectionLib.qll
      • CWE-400
        • ThreadResourceAbuse.ql
      • CWE-470
        • UnsafeReflection.ql
      • CWE-600
        • UncaughtServletException.ql
      • CWE-601
        • SpringUrlRedirect.ql
      • CWE-652
        • XQueryInjection.ql
      • CWE-755
        • NFEAndroidDoS.ql
    • test/library-tests
      • dataflow
        • entrypoint-types
          • EntryPointTypesTest.ql
        • threat-models
          • Test.qll
      • frameworks
        • JaxWs
          • JaxRsFlow.ql
        • android
          • content-provider
            • test.ql
          • external-storage
            • test.ql
          • slice
            • test.ql
          • sources
            • OnActivityResultSourceTest.ql
        • apache-http
          • flow.ql
        • guice
          • flow.ql
        • jms
          • FlowTest.ql
        • netty/manual
          • test.ql
        • rabbitmq
          • FlowTest.ql
        • ratpack
          • flow.ql
        • spring/controller
          • test.ql

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎csharp/ql/lib/change-notes/2024-09-10-ActiveThreatModelSource.md‎

Copy file name to clipboard
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: deprecated
3+
---
4+
* The class `ThreatModelFlowSource` has been renamed to `ActiveThreatModelSource` to more clearly reflect it only contains the currently active threat model sources. `ThreatModelFlowSource` has been marked as deprecated.
Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/auth/InsecureDirectObjectReferenceQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/auth/InsecureDirectObjectReferenceQuery.qll
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private predicate needsChecks(ActionMethod m) { m.isEdit() and not m.isAdmin() }
1818
* that may indicate that it's used as the ID for some resource
1919
*/
2020
private predicate hasIdParameter(ActionMethod m) {
21-
exists(ThreatModelFlowSource src | src.getEnclosingCallable() = m |
21+
exists(ActiveThreatModelSource src | src.getEnclosingCallable() = m |
2222
src.asParameter().getName().toLowerCase().matches(["%id", "%idx"])
2323
or
2424
// handle cases like `Request.QueryString["Id"]`
Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/dataflow/CodeInjectionQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/dataflow/CodeInjectionQuery.qll
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource
5555
deprecated class LocalSource extends DataFlow::Node instanceof LocalFlowSource { }
5656

5757
/** A source supported by the current threat model. */
58-
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }
58+
class ThreatModelSource extends Source instanceof ActiveThreatModelSource { }
5959

6060
private class SimpleTypeSanitizer extends Sanitizer, SimpleTypeSanitizedExpr { }
6161

Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/dataflow/CommandInjectionQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/dataflow/CommandInjectionQuery.qll
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module CommandInjection = TaintTracking::Global<CommandInjectionConfig>;
5757
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
5858

5959
/** A source supported by the current threat model. */
60-
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }
60+
class ThreatModelSource extends Source instanceof ActiveThreatModelSource { }
6161

6262
/** Command Injection sinks defined through Models as Data. */
6363
private class ExternalCommandInjectionExprSink extends Sink {
Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/dataflow/ConditionalBypassQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/dataflow/ConditionalBypassQuery.qll
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module ConditionalBypass = TaintTracking::Global<ConditionalBypassConfig>;
5454
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
5555

5656
/** A source supported by the current threat model. */
57-
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }
57+
class ThreatModelSource extends Source instanceof ActiveThreatModelSource { }
5858

5959
/** The result of a reverse dns may be user-controlled. */
6060
class ReverseDnsSource extends Source {
Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/dataflow/ExternalAPIsQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/dataflow/ExternalAPIsQuery.qll
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ class ExternalApiDataNode extends DataFlow::Node {
7373
}
7474
}
7575

76-
/** A configuration for tracking flow from `ThreatModelFlowSource`s to `ExternalApiDataNode`s. */
76+
/** A configuration for tracking flow from `ActiveThreatModelSource`s to `ExternalApiDataNode`s. */
7777
private module RemoteSourceToExternalApiConfig implements DataFlow::ConfigSig {
78-
predicate isSource(DataFlow::Node source) { source instanceof ThreatModelFlowSource }
78+
predicate isSource(DataFlow::Node source) { source instanceof ActiveThreatModelSource }
7979

8080
predicate isSink(DataFlow::Node sink) { sink instanceof ExternalApiDataNode }
8181
}
8282

83-
/** A module for tracking flow from `ThreatModelFlowSource`s to `ExternalApiDataNode`s. */
83+
/** A module for tracking flow from `ActiveThreatModelSource`s to `ExternalApiDataNode`s. */
8484
module RemoteSourceToExternalApi = TaintTracking::Global<RemoteSourceToExternalApiConfig>;
8585

8686
/** A node representing untrusted data being passed to an external API. */
Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/dataflow/LDAPInjectionQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/dataflow/LDAPInjectionQuery.qll
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module LdapInjection = TaintTracking::Global<LdapInjectionConfig>;
6060
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
6161

6262
/** A source supported by the current threat model. */
63-
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }
63+
class ThreatModelSource extends Source instanceof ActiveThreatModelSource { }
6464

6565
/** LDAP sinks defined through Models as Data. */
6666
private class ExternalLdapExprSink extends Sink {
Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/dataflow/LogForgingQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/dataflow/LogForgingQuery.qll
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private module LogForgingConfig implements DataFlow::ConfigSig {
4343
module LogForging = TaintTracking::Global<LogForgingConfig>;
4444

4545
/** A source of remote user input. */
46-
private class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }
46+
private class ThreatModelSource extends Source instanceof ActiveThreatModelSource { }
4747

4848
private class HtmlSanitizer extends Sanitizer {
4949
HtmlSanitizer() { this.asExpr() instanceof HtmlSanitizedExpr }
Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/dataflow/MissingXMLValidationQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/dataflow/MissingXMLValidationQuery.qll
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private module MissingXmlValidationConfig implements DataFlow::ConfigSig {
4848
module MissingXmlValidation = TaintTracking::Global<MissingXmlValidationConfig>;
4949

5050
/**
51-
* DEPRECATED: Use `ThreatModelFlowSource` instead.
51+
* DEPRECATED: Use `ActiveThreatModelSource` instead.
5252
*
5353
* A source of remote user input.
5454
*/
@@ -57,7 +57,7 @@ deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource
5757
/**
5858
* A source supported by the current threat model.
5959
*/
60-
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }
60+
class ThreatModelSource extends Source instanceof ActiveThreatModelSource { }
6161

6262
/**
6363
* The input argument to a call to `XmlReader.Create` where the input will not be validated against
Collapse file

‎csharp/ql/lib/semmle/code/csharp/security/dataflow/ReDoSQuery.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/security/dataflow/ReDoSQuery.qll
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module ReDoS = TaintTracking::Global<ReDoSConfig>;
4949
deprecated class RemoteSource extends DataFlow::Node instanceof RemoteFlowSource { }
5050

5151
/** A source supported by the current threat model. */
52-
class ThreatModelSource extends Source instanceof ThreatModelFlowSource { }
52+
class ThreatModelSource extends Source instanceof ActiveThreatModelSource { }
5353

5454
/**
5555
* An expression that represents a regular expression with potential exponential behavior.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.