Permalink
Browse files

Stops a potential DoS by limiting maximum count to

2016 or less. This way, you're not having memory exhausted by someone trying to load information on all of your blocks.
  • Loading branch information...
Lvl4Sword authored and maffelux committed Nov 17, 2017
1 parent 283ab79 commit 440c5f3281ec35f68279d01cd0746c90fbed24cd
Showing with 2 additions and 0 deletions.
  1. +2 −0 Abe/abe.py
View
@@ -416,6 +416,8 @@ def handle_chain(abe, page):
body += abe.search_form(page)
count = get_int_param(page, 'count') or 20
if count >= 2017:
count = 20
hi = get_int_param(page, 'hi')
orig_hi = hi

0 comments on commit 440c5f3

Please sign in to comment.