FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Port settings accept malformed and out-of-range values · Issue #22 · profullstack/moshpit-proxy · GitHub

Port settings accept malformed and out-of-range values #22

Description

Summary

MOSHPIT_PROXY_PORT and MOSHPIT_GATEWAY_PORT are parsed with parseInt and only checked for a positive finite result. This accepts partial or invalid port strings such as 443junk and also accepts values above the maximum TCP port.

Reproduction

  • MOSHPIT_PROXY_PORT=443junk is silently interpreted as port 443.
  • MOSHPIT_GATEWAY_PORT=70000 survives configuration and later fails when a socket is opened.
  • Fractional values such as 1.5 are truncated instead of rejected.

Expected behavior

Only complete decimal integers in the TCP port range 1 through 65535 should be accepted. Invalid values should use the documented defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL