Skip to content

Conversation

mathieucarbou
Copy link
Member

@mathieucarbou mathieucarbou commented Jun 27, 2025

@mathieucarbou
Copy link
Member Author

@JLLeitschuh @me-no-dev FYI

@mathieucarbou mathieucarbou changed the title Fix CRLF Injection in AsyncWebHeader.cpp Fix CRLF Injection in AsyncWebHeader.cpp (GHSA-87j8-6f7g-h8wh) Jun 27, 2025
log_v("Invalid character in HTTP header");
#endif
return; // Invalid header format
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@me-no-dev : the current code is weird IMO. If the header line cannot be parsed in anyway, we should not have created a AsyncWebHeader instance from start. This parsing logic should be extracted in a static method which is returning an AsyncWebHeader pointer or null maybe.

WDYT ?

Copy link
Member

Choose a reason for hiding this comment

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

we could rethink the logic, agreed

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. Let's merge that, cut a release, then do the change

@mathieucarbou mathieucarbou merged commit afb9522 into main Jun 29, 2025
33 checks passed
@mathieucarbou mathieucarbou deleted the secfix branch June 29, 2025 20:27
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.

2 participants