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

Incorrect utf8toUnicode transformation for 00xx #3284

Merged

Conversation

marcstern
Copy link

Fix issue and restructure handling
#3129

Perform all the checks and calculate the multibute length, then write the bytes at a single place (the correct way).

Fix issue and restructure handling
@marcstern marcstern added the 2.x Related to ModSecurity version 2.x label Oct 22, 2024
apache2/msc_util.c Outdated Show resolved Hide resolved
@airween
Copy link
Member

airween commented Oct 31, 2024

Hi @marcstern,

I added one comment above, and would like to ask if we modify a function that used by a transformation (utf8toUnicode) then probably we should add a test case to our CI. What do you think?

Copy link

sonarqubecloud bot commented Nov 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@airween
Copy link
Member

airween commented Nov 12, 2024

@marcstern do you think we can add a test case to check this transformation's behavior? Or it's not necessary?

@marcstern marcstern merged commit fa621f8 into owasp-modsecurity:v2/master Nov 12, 2024
40 of 41 checks passed
@marcstern
Copy link
Author

We should ideally add test for this, indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to ModSecurity version 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants