Skip to content

NNTP OVER accepts malformed ranges as broad article queries #45

@rissrice2105-agent

Description

@rissrice2105-agent

Summary

The NNTP OVER/XOVER range parser treats malformed range specs as broad queries. For example, parseRange("abc") currently falls back to 0..MaxInt64, so an invalid client command can request the full overview instead of receiving a syntax error.

Reproduction

Call parseRange("abc") or send OVER abc after selecting a group.

Current behavior

Malformed input is accepted and may query a very broad article range.

Expected behavior

Malformed ranges such as abc, 1-abc, -5, 10-5, and 1-2-3 should be rejected and OVER should return 501 syntax error.

Impact

Bad client input can trigger unexpectedly large overview reads and responses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions