Files
sif/modules/recon/nexus-repository-exposure.yaml
T
TigahandGitHub 243e0aba16 feat(modules): add haproxy stats, nexus and pushgateway exposure modules (#301)
* feat(modules): add haproxy stats, nexus and pushgateway exposure modules

* chore(modules): trim redundant module header comments

drop the top-line comments on the new infra exposure modules that
just restated the id/name fields already in the info block
2026-07-22 12:48:13 -07:00

40 lines
898 B
YAML

id: nexus-repository-exposure
info:
name: Nexus Repository Catalog Exposure
author: sif
severity: high
description: Detects a Sonatype Nexus Repository Manager with anonymous access left enabled, letting an unauthenticated caller enumerate the full repository catalog through the rest api
tags: [nexus, sonatype, repository, artifact, registry, api, exposure, unauth, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/service/rest/v1/repositories"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "\"format\""
- "\"type\""
condition: and
- type: regex
part: body
regex:
- '"url"\s*:\s*"https?://[^"]*/repository/'
extractors:
- type: regex
name: nexus_repository_names
part: body
regex:
- '"name"\s*:\s*"([^"]+)"'
group: 1