OreosLab / SSRSpeedN

Audit: Binding to all interfaces detected with hardcoded values BAN-B104
Security
Major
2 years ago2 years old
Possible binding to all interfaces.
357            "--source_ip",
358            help="The source IPv4/IPv6 address to bind to.",
359            type=str,
360            default="0.0.0.0",361        )
362        parser.add_argument(
363            "--source-port", help="The source port to bind to.", type=int, default=54320
Possible binding to all interfaces.
296    else:
297        stun_addr = (stun_host, stun_port)
298    # Determine the actual local, or source IP
299    if source_ip == "0.0.0.0":300        # IPv4
301        source_ip = get_internal_ipv4(stun_addr)
302    elif source_ip == "::":
Possible binding to all interfaces.
254
255# Get the network topology, external IP, and external port
256def get_ip_info(
257    source_ip="0.0.0.0",258    source_port=54320,259    stun_host=None,260    stun_port=3478,261    include_internal=False,262    sock=None,263):
264    """Get information about the network topology, external IP, and external port.
265