mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
* 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
40 lines
898 B
YAML
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
|