File tree Expand file tree Collapse file tree
javascript/ql/src/semmle/javascript/security/dataflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010import javascript
1111
12+ /**
13+ * Classes and predicates for storage of sensitive information in build artifact query.
14+ */
1215module BuildArtifactLeak {
1316 import BuildArtifactLeakCustomizations:: BuildArtifactLeak
1417 import CleartextLoggingCustomizations:: CleartextLogging as CleartextLogging
@@ -27,7 +30,9 @@ module BuildArtifactLeak {
2730 sink .( Sink ) .getLabel ( ) = lbl
2831 }
2932
30- override predicate isSanitizer ( DataFlow:: Node node ) { node instanceof CleartextLogging:: Barrier }
33+ override predicate isSanitizer ( DataFlow:: Node node ) {
34+ node instanceof CleartextLogging:: Barrier
35+ }
3136
3237 override predicate isSanitizerEdge ( DataFlow:: Node pred , DataFlow:: Node succ ) {
3338 CleartextLogging:: isSanitizerEdge ( pred , succ )
Original file line number Diff line number Diff line change 11/**
2- * Provides default sources, sinks and sanitizers for reasoning about
3- * storage of sensitive information in build artifact, as well as extension
4- * points for adding your own.
2+ * Provides default sinks for reasoning about storage of sensitive information
3+ * in build artifact, as well as extension points for adding your own.
54 */
65
76import javascript
87private import semmle.javascript.dataflow.InferredTypes
98private import semmle.javascript.security.SensitiveActions:: HeuristicNames
109
10+ /**
11+ * Sinks for storage of sensitive information in build artifact.
12+ */
1113module BuildArtifactLeak {
1214 /**
1315 * A data flow sink for clear-text logging of sensitive information.
1416 */
1517 abstract class Sink extends DataFlow:: Node {
18+ /**
19+ * Gets a data-flow label that leaks information for this sink.
20+ */
1621 DataFlow:: FlowLabel getLabel ( ) { result .isTaint ( ) }
1722 }
1823
You can’t perform that action at this time.
0 commit comments