Skip to content

Deprecate exposed-bgp check by a Nuclei template #488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions cmd/vulcan-nuclei/templates/network/detection/bgp-detect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
id: bgp-detect

info:
name: BGP Detection
author: danfaizer
severity: info
description: |
The remote host is running BGP, a popular routing protocol. This indicates that the remote host is probably a network router.
reference:
- https://www.acunetix.com/vulnerabilities/network/vulnerability/bgp-detection/
- https://www.tenable.com/plugins/nessus/11907
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
cwe-id: CWE-200
metadata:
max-request: 1
shodan-query: product:"BGP"
tags: network,bgp

tcp:
- inputs:
- data: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF001D010400FFFF0000B4C0
type: hex
# Source: https://www.rfc-editor.org/rfc/rfc4271.html#section-4.2
# FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF represents the 16-byte marker field.
# 001D is the total length of the BGP message, including the 19 bytes of the header and the optional parameters.
# 01 is the BGP message type, which is OPEN (1).
# 04 represents the BGP version, which is BGP-4.
# FFFF represents the Autonomous System Number (ASN) in hexadecimal format.
# 0000 represents the Hold Time.
# B4C0 represents the BGP Identifier, usually an IP address in hexadecimal format.

host:
- "{{Hostname}}"
- "{{Host}}:179"

read-size: 16
matchers:
- type: word
encoding: hex
words:
- "ffffffffffffffffffffffffffffffff"
5 changes: 5 additions & 0 deletions cmd/vulcan-nuclei/tests/bgp.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

# Copyright 2023 Adevinta

echo -n -e \\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff | nc -l 179