UNIX Ports Out Of Range

  • Query id: 71bf8cf8-f0a1-42fa-b9d2-d10525e0a38e
  • Query name: UNIX Ports Out Of Range
  • Platform: Dockerfile
  • Severity: Info
  • Category: Networking and Firewall
  • URL: Github

Description

Exposing UNIX ports out of range from 0 to 65535
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - dockerfile file
FROM gliderlabs/alpine:3.3
RUN apk --no-cache add nginx
EXPOSE 65536/tcp 80 443 22
CMD ["nginx", "-g", "daemon off;"]

Code samples without security vulnerabilities

Negative test num. 1 - dockerfile file
FROM gliderlabs/alpine:3.3
RUN apk --no-cache add nginx
EXPOSE 3000 80 443 22
CMD ["nginx", "-g", "daemon off;"]