Skip to content

Commit

Permalink
tidy up staging branch
Browse files Browse the repository at this point in the history
  • Loading branch information
roo-ahine committed Jan 29, 2025
1 parent 9da3e6c commit 390dcf3
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 39 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# base-image-pipeline-poc
CodePipeline PoC to scan and build images before pushing to ECR

Testing with known vulnerable image for log4j - [source](https://github.com/jatinmehrotra/log4jpoc)
1 change: 0 additions & 1 deletion anotherfile

This file was deleted.

54 changes: 54 additions & 0 deletions app/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<artifactId>log4j-rce</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.14.1</version>
<!-- Swap with the below to prove it's fixed -->
<!-- <version>2.15.0</version>-->
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.14.1</version>
<!-- Swap with the below to prove it's fixed -->
<!-- <version>2.15.0</version>-->
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>MyExample</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
10 changes: 10 additions & 0 deletions app/src/main/java/MyExample.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class MyExample {
private static final Logger logger = LogManager.getLogger(MyExample.class);

public static void main(String[] args) {
logger.error("${env:SECRET_VALUE:-:}");
}
}
1 change: 0 additions & 1 deletion boo

This file was deleted.

1 change: 0 additions & 1 deletion gah

This file was deleted.

1 change: 0 additions & 1 deletion ghtest

This file was deleted.

1 change: 0 additions & 1 deletion goo

This file was deleted.

1 change: 0 additions & 1 deletion hgfh

This file was deleted.

1 change: 0 additions & 1 deletion hhf

This file was deleted.

1 change: 0 additions & 1 deletion hhh

This file was deleted.

1 change: 0 additions & 1 deletion sdfsdf

This file was deleted.

1 change: 0 additions & 1 deletion tttt

This file was deleted.

0 comments on commit 390dcf3

Please sign in to comment.