Skip to content

Conversation

@nnposter
Copy link

@nnposter nnposter commented Sep 4, 2024

The NSE wrapper for OpenSSL is currently testing for null IV by inspecting the first byte, as if the IV was a null-terminated string, as opposed to an arbitrary byte sequence:

nmap/nse_openssl.cc

Lines 393 to 394 in fbadb52

if (iv[0] == '\0')
iv = NULL;

The impact of this misinterpretation is that both openssl.encrypt() and openssl.decrypt() are sporadically producing incorrect results.

The PR will be committed after September 13, 2024, unless concerns are raised.

@nnposter nnposter self-assigned this Sep 4, 2024
@nnposter nnposter linked an issue Sep 9, 2024 that may be closed by this pull request
@nmap-bot nmap-bot closed this in 3d99250 Sep 13, 2024
@nnposter nnposter deleted the nseopenssl-ivzero branch June 7, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenSSL Lua library not working as expected with aes-128-cfb

1 participant