Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer overflow in parse of max_ips_to_scan #2838

Open
dksslq opened this issue May 11, 2024 · 0 comments
Open

Integer overflow in parse of max_ips_to_scan #2838

dksslq opened this issue May 11, 2024 · 0 comments
Labels

Comments

@dksslq
Copy link

dksslq commented May 11, 2024

Describe the bug
Integer overflow in parse of max_ips_to_scan
max_ips_to_scan defined as unsigned int max_ips_to_scan; // Used for Random input (-iR) to specify how in NmapOps.h
but use as ulong o.max_ips_to_scan = strtoul(optarg, &endptr, 10); in nmap.cc

To Reproduce
nmap -iR 2147483647 works fine, nmap -iR 2147483648 parsed 0 target.

@dksslq dksslq added the Nmap label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant