Skip to content

NuGet Package.config File Disclosure

ID: nuget-package-config

Severity: info

Author: DhiyaneshDK

Tags: exposure,sass,devops,cicd,nuget,files

id: nuget-package-config
info:
name: NuGet Package.config File Disclosure
author: DhiyaneshDK
severity: info
reference:
- https://learn.microsoft.com/en-us/nuget/reference/packages-config
- https://github.com/maurosoria/dirsearch/blob/master/db/dicc.txt
classification:
cpe: cpe:2.3:a:microsoft:nuget:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: microsoft
product: nuget
shodan-query: html:"packages.config"
tags: exposure,sass,devops,cicd,nuget,files
http:
- method: GET
path:
- '{{BaseURL}}/packages.config'
- '{{BaseURL}}/.nuget/packages.config'
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<?xml version="1.0" encoding="utf-8"?>'
- '<packages>'
- '</packages>'
condition: and
- type: status
status:
- 200
# digest: 4b0a00483046022100f2243263c3ce19ba812e89104daa048ce99719f1f612979b2e0e489989f2524b022100999ec7c8ed7156118d5e58e336c1f39b961379eebd382a988d34bc5b51ab6d42:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/files/nuget-package-config.yaml"

View on Github