Skip to content

ftp: fix port number range loop for PORT commands#18636

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/ftp-port-ports
Closed

ftp: fix port number range loop for PORT commands#18636
bagder wants to merge 1 commit into
masterfrom
bagder/ftp-port-ports

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Sep 20, 2025

If the last port to test is 65535, the loop would previously wrongly wrap the counter and start over at 0, which was not intended.

Reported in Joshua's sarif data

If the last port to test is 65535, the loop would previously wrongly
wrap the counter and start over at 0, which was not intended.

Reported in Joshua's sarif data
@bagder bagder added the FTP label Sep 20, 2025
@bagder bagder marked this pull request as ready for review September 20, 2025 12:47
@bagder bagder closed this in 277ebca Sep 20, 2025
@bagder bagder deleted the bagder/ftp-port-ports branch September 20, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant