Skip to content

Unsafe Spring Service Exporter

Description

The use of HttpInvokerServiceExporter or SimpleHttpInvokerServiceExporter can expose the service to remote attacks, as it allows remote method invocation over HTTP.

Examples

Insecure Code

java
HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();

Secure Code

java
RmiServiceExporter exporter = new RmiServiceExporter();

Remediation

Use a secure alternative, such as RmiServiceExporter, or configure the exporter to use a secure protocol, such as HTTPS.

Rule Details

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