nexus-repository-anonymous-access: Nexus Repository Manager - Anonymous Access Enabled

2025-12-12 Nexus Repository Manager PoC Public

Description

Detected Nexus Repository Manager instance with anonymous access enabled, allowing unauthenticated users to list and browse repositories containing private artifacts including source code, packages, and Docker images.

PoC

id: nexus-repository-anonymous-access

info:
  name: Nexus Repository Manager - Anonymous Access Enabled
  author: 0x_Akoko
  severity: medium
  description: |
    Detected Nexus Repository Manager instance with anonymous access enabled, allowing unauthenticated users to list and browse repositories containing private artifacts including source code, packages, and Docker images.
  reference:
    - https://help.sonatype.com/en/anonymous-access.html
    - https://help.sonatype.com/en/access-control.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 6.5
    cwe-id: CWE-276
  metadata:
    max-request: 1
    verified: true
    shodan-query: title:"Nexus Repository Manager"
    fofa-query: title="Nexus Repository Manager"
  tags: misconfig,nexus,sonatype,exposure,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/service/rest/v1/repositories"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "\"name\"", "\"format\"", "\"type\"")'
          - 'contains_any(body, "maven", "npm", "docker", "nuget", "pypi", "raw", "apt", "yum")'
        condition: and

    extractors:
      - type: json
        part: body
        json:
          - '.[].name'
# digest: 4b0a00483046022100976daa77366809d499ed3fdc4013e7834992e9e39389b730f92dcf484d3de941022100f9a0eb63f5aed2387a34a048b4ccf7c6afa3c1b5ffb4a8be8d4ff8907845677e:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities