Skip to content

Add support for SSRF vulnerabilities#5051

Merged
manuel-alvarez-alvarez merged 1 commit into
masterfrom
malvarez/ssrf
Apr 26, 2023
Merged

Add support for SSRF vulnerabilities#5051
manuel-alvarez-alvarez merged 1 commit into
masterfrom
malvarez/ssrf

Conversation

@manuel-alvarez-alvarez

@manuel-alvarez-alvarez manuel-alvarez-alvarez commented Apr 12, 2023

Copy link
Copy Markdown
Member

What Does This Do

Adds support for SSRF detection via jdk (URL/URI), okhttp (versions 2 and 3) and commons httpclient (versions 1 and 2)

Motivation

Additional Notes

Support for other frameworks like apache commons (4 and 5), spring rest-template will come later

@manuel-alvarez-alvarez manuel-alvarez-alvarez added the comp: asm iast Application Security Management (IAST) label Apr 12, 2023

@manuel-alvarez-alvarez manuel-alvarez-alvarez Apr 12, 2023

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think it might make sense to build a different module (aka UrlModule) to deal with the propagation in URLs

@manuel-alvarez-alvarez
manuel-alvarez-alvarez force-pushed the malvarez/ssrf branch 6 times, most recently from e87d2b2 to f1841a7 Compare April 12, 2023 16:43

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No telemetry annotations?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The class has the annotation:

@IastAdvice.Propagation(PropagationTypes.URI)
@CallSite(spi = IastAdvice.class)
public class URICallSite {
   ...
}

Method annotations take precedence over the type annotation so you can override the telemetry annotation.

@pr-commenter

pr-commenter Bot commented Apr 25, 2023

Copy link
Copy Markdown

Benchmarks

Parameters

Baseline Candidate
commit 1.13.0-SNAPSHOT~3f7b05d217 1.13.0-SNAPSHOT~28b823888e
config baseline candidate
See matching parameters
Baseline Candidate
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 22 cases.

See unchanged results
scenario Δ mean execution_time
scenario:Startup-base-Agent same
scenario:Startup-base-Agent.start same
scenario:Startup-base-BytebuddyAgent same
scenario:Startup-base-GlobalTracer same
scenario:Startup-base-AppSec same
scenario:Startup-base-Remote Config same
scenario:Startup-base-Telemetry same
scenario:Startup-iast-Agent same
scenario:Startup-iast-Agent.start same
scenario:Startup-iast-BytebuddyAgent same
scenario:Startup-iast-GlobalTracer same
scenario:Startup-iast-AppSec same
scenario:Startup-iast-IAST same
scenario:Startup-iast-Remote Config same
scenario:Startup-iast-Telemetry same
scenario:Startup-waf-Agent same
scenario:Startup-waf-Agent.start same
scenario:Startup-waf-BytebuddyAgent same
scenario:Startup-waf-GlobalTracer same
scenario:Startup-waf-AppSec same
scenario:Startup-waf-Remote Config same
scenario:Startup-waf-Telemetry same

@manuel-alvarez-alvarez
manuel-alvarez-alvarez merged commit 1653d15 into master Apr 26, 2023
@manuel-alvarez-alvarez
manuel-alvarez-alvarez deleted the malvarez/ssrf branch April 26, 2023 14:24
@github-actions github-actions Bot added this to the 1.13.0 milestone Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: asm iast Application Security Management (IAST)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants