Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
0bbac93d
Commit
0bbac93d
authored
Mar 05, 2015
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add security advisory for previous commit.
parent
80149744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
2015-03-05-0-c++-addl-cpu-amplification.md
...ity-advisories/2015-03-05-0-c++-addl-cpu-amplification.md
+62
-0
No files found.
security-advisories/2015-03-05-0-c++-addl-cpu-amplification.md
0 → 100644
View file @
0bbac93d
Problem
=======
CPU usage amplification attack, similar to previous vulnerability
[
2015-03-02-2
][
1
]
.
Discovered by
=============
David Renshaw
<
david@sandstorm.io>
Announced
=========
2015-03-05
Impact
======
-
Remotely cause a peer to execute a tight
`for`
loop counting from 0 to
2^29, possibly repeatedly, by sending it a small message. This could enable
a DoS attack by consuming CPU resources.
Fixed in
========
-
git commit
[
80149744bdafa3ad4eedc83f8ab675e27baee868
][
0
]
-
release 0.5.1.2:
-
Unix: https://capnproto.org/capnproto-c++-0.5.1.2.tar.gz
-
Windows: https://capnproto.org/capnproto-c++-win32-0.5.1.2.zip
-
release 0.4.1.1:
-
Unix: https://capnproto.org/capnproto-c++-0.4.1.2.tar.gz
-
release 0.6 (future)
[
0
]:
https://github.com/sandstorm-io/capnproto/commit/80149744bdafa3ad4eedc83f8ab675e27baee868
Details
=======
Advisory
[
2015-03-02-2
][
1
]
described a bug allowing a remote attacker to
consume excessive CPU time or other resources usin a specially-crafted message.
The present advisory is simply another case of the same bug which was initially
missed.
The new case occurs only if the application invokes the
`totalSize()`
method
on an object reader.
The new case is somewhat less severe, in that it only spins in a tight
`for`
loop that doesn't call any application code. Only CPU time is possibly
consumed, not RAM or other resources. However, it is still possible to create
significant delays for the receiver with a specially-crafted message.
[
1
]:
https://github.com/sandstorm-io/capnproto/blob/master/security-advisories/2015-03-02-2-all-cpu-amplification.md
Preventative measures
=====================
Our fuzz test actually covered this case, but we didn't notice the problem
because the loop actually completes in less than a second. We've added a new
test case which is more demanding, and will make sure that when we do extended
testing with American Fuzzy Lop, we treat unexpectedly long run times as
failures.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment