dockerrun-aws-json-exposure: AWS Elastic Beanstalk Dockerrun.aws.json - Exposure

2026-02-03 AWS Elastic Beanstalk PoC Public

Description

Detected AWS Elastic Beanstalk Dockerrun.aws.json configuration file was publicly accessible, potentially revealing Docker container definitions, image names, hostnames, port mappings, and infrastructure details.

PoC

id: dockerrun-aws-json-exposure

info:
  name: AWS Elastic Beanstalk Dockerrun.aws.json - Exposure
  author: 0x_Akoko
  severity: medium
  description: |
    Detected AWS Elastic Beanstalk Dockerrun.aws.json configuration file was publicly accessible, potentially revealing Docker container definitions, image names, hostnames, port mappings, and infrastructure details.
  reference:
    - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_v2config.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"AWSEBDockerrunVersion"
    fofa-query: body="AWSEBDockerrunVersion"
  tags: aws,docker,config,exposure,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/Dockerrun.aws.json"
      - "{{BaseURL}}/static/Dockerrun.aws.json"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(content_type, "application/json", "text/plain")'
          - 'contains_all(body, "AWSEBDockerrunVersion", "containerDefinitions", "image")'
        condition: and
# digest: 4a0a0047304502210087b79b8ec7b7ac87bb7a61110d6847d6a30896068be88d52de605b977ba4d00402202a5f714f5ade3f51d5487aa5ad4f7aa0b6da79834901d675918b8e3af2bd66ad:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities