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

Fix cvs signed pointer #609

Merged
merged 2 commits into from
Dec 16, 2014
Merged

Fix cvs signed pointer #609

merged 2 commits into from
Dec 16, 2014

Conversation

NickSampanis
Copy link
Contributor

the characters of pointer *p is used as an index to the array cvs_shifts. We control these characters as password and while it seems thats a valid action because cvs_shifts has size of 256, it isn't. The reason is that p is a signed pointer so when p[i](which is say 0xff) will be converted to unsigned size_t as 0xffffffff and not as 255

@NickSampanis
Copy link
Contributor Author

get_decode_len may return negative value which leads to huge allocation and denial of service

LocutusOfBorg added a commit that referenced this pull request Dec 16, 2014
@LocutusOfBorg LocutusOfBorg merged commit 71bd7bf into Ettercap:master Dec 16, 2014
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.

2 participants