Skip to content

Spring cloud gateway CVE 2022 22947 - #279

Open
robert-doyensec wants to merge 2 commits into
google:mainfrom
doyensec:spring-cloud-gateway-cve-2022-22947-templated
Open

robert-doyensec wants to merge 2 commits into
google:mainfrom
doyensec:spring-cloud-gateway-cve-2022-22947-templated

Conversation

@robert-doyensec

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a Docker Compose setup and a Spring Boot application to demonstrate CVE-2022-22947 (a SpEL injection vulnerability in Spring Cloud Gateway). It includes a vulnerable service and a patched service for comparison, along with a README detailing how to reproduce the vulnerability. A review comment points out that the spring-boot-maven-plugin is declared twice in the pom.xml file and suggests merging them into a single configuration.

Comment on lines +45 to +55
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.example.demo.Application</mainClass>
</configuration>
</plugin>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The spring-boot-maven-plugin is declared twice in the <plugins> block. These duplicate declarations should be merged into a single plugin configuration to keep the POM file clean and maintainable.

        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <mainClass>com.example.demo.Application</mainClass>
            </configuration>
        </plugin>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant