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

Audit http #37

Open
thomcc opened this issue Sep 7, 2019 · 6 comments
Open

Audit http #37

thomcc opened this issue Sep 7, 2019 · 6 comments

Comments

@thomcc
Copy link

thomcc commented Sep 7, 2019

This is a very popular crate (10k downloads / day, >2M all time), and is also a potential attack target, due to the fact that it is intended to be exposed directly to the network.

It does some tricky stuff with unsafe that's I've always felt was worth a close look at. In particular the HeaderMap and related code is quite complex and uses a lot of unsafe. The rest of the crate uses less, but still some.

See also #5

@Qwaz
Copy link
Contributor

Qwaz commented Nov 16, 2019

I started looking into the code, and I'm about halfway done; I will open issues about my finding and keep this thread updated.

@Qwaz
Copy link
Contributor

Qwaz commented Nov 16, 2019

Reported hyperium/http#352, hyperium/http#353, hyperium/http#354, and hyperium/http#355. I don't have enough time to work on PRs in the mean time, so I would appreciate it if someone else can take care of theese issues.

@danielhenrymantilla
Copy link

Nice job, I'll see if I have the time to tackle these

@Shnatsel
Copy link
Member

Wow, you've even found a double free! Great job!

@Shnatsel
Copy link
Member

The bugs you've found are now showcased in the safety-dance trophy case in README. Thanks again!

@Qwaz
Copy link
Contributor

Qwaz commented Feb 15, 2020

Sounds good, thank you!

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

No branches or pull requests

4 participants