Skip to content

Unsafe Spring Service Exporter

Description

The use of HttpInvokerServiceExporter or SimpleHttpInvokerServiceExporter can expose services over HTTP, potentially allowing unauthorized access.

Examples

Insecure Code

java
org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();

Secure Code

java
org.springframework.remoting.rmi.RmiServiceExporter exporter = new RmiServiceExporter();

Remediation

Use a secure exporter, such as RmiServiceExporter, or configure the HttpInvokerServiceExporter to use SSL/TLS encryption.

Rule Details

FieldValue
IDCODE-0236
CategoryInsecureConfig
SeverityMEDIUM
CWECWE-306
ConfidenceLOW
ImpactLOW
LikelihoodLOW
ExploitabilityMODERATE
Tagsspring, httpinvoker
OWASPN/A