Skip to content

Correctness: Reject non-numeral netstring lengths in qmtpd and qmqpd - #241

Merged
DerDakon merged 1 commit into
notqmail:masterfrom
janicez:master
Oct 23, 2022
Merged

DerDakon merged 1 commit into
notqmail:masterfrom
janicez:master

Conversation

@janicez

@janicez janicez commented Oct 20, 2022

Copy link
Copy Markdown
Contributor

This was discussed on IRC between myself and a few other people back in September, and I finally got around to doing it recently. Logs can be added to the ticket upon request.

@DerDakon DerDakon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an entry to CHANGES.md. Otherwise fine.

…fted length to qmail-qmqpd or qmtpd and it would just work (as long as there was no integer wraparound) based off the ASCII value. This commit:

 * includes a check in the netstring parsing code in qmail-qmtpd and qmail-qmqpd that balks the program if the length field of a netstring is not a numeral, and
 * updates CHANGES.md to include the note about the change in netstring behavior
@DerDakon
DerDakon merged commit 3752074 into notqmail:master Oct 23, 2022
@schmonz schmonz modified the milestones: 1.90, 1.09 Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants