Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions IaC/kubernetes/docker-socket.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Exposing Docker sockets can lead to compromise of the host systems.


# Kubernetes Documentation - Volumes
# Docker Documention - Daemon socket option
# MITRE, CWE-284 - Improper Access Control

---
apiVersion: v1
kind: Pod
Expand Down
2 changes: 1 addition & 1 deletion IaC/terraform/god-mode.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ resource "google_project_iam_binding" "example" {
role = "roles/owner" # Sensitive

members = [
"user:jane@example.com",
"user:john@example.com",
]
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# vulnerable-code-examples
## Description

This repo contains a variety of code samples of vulnerability, dependency and risk.

## IaC (Infrastructure as Code)
Expand Down
3 changes: 0 additions & 3 deletions SAST/java/sample.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ public static void main(String[] args) {
}
}

// (CWE-259)
// This sample Java file includes code that prints a sensitive password to the console.
// It can be used to test SAST tools' capability to detect hardcoded passwords.
2 changes: 1 addition & 1 deletion SCA/java/maven/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- File: pom.xml -->

//this file basically does have all the dependecies
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Expand Down