Skip to content

fix message length validation in ajp_msg_check_header#611

Open
rootvector2 wants to merge 1 commit intoapache:trunkfrom
rootvector2:ajp-msglen-validation
Open

fix message length validation in ajp_msg_check_header#611
rootvector2 wants to merge 1 commit intoapache:trunkfrom
rootvector2:ajp-msglen-validation

Conversation

@rootvector2
Copy link

ajp_msg_check_header() validates msglen against msg->max_size,
but ajp_ilink_receive() reads the body starting at buf + AJP_HEADER_LEN.

This means msglen values up to msg->max_size can pass validation while
writing past the end of the allocated buffer.

Restrict msglen to msg->max_size - AJP_HEADER_LEN to ensure the body
fits within msg->buf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant