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

Stack-Overflow in libsass library #2516

Closed
lcytxw opened this issue Dec 19, 2017 · 0 comments
Closed

Stack-Overflow in libsass library #2516

lcytxw opened this issue Dec 19, 2017 · 0 comments

Comments

@lcytxw
Copy link

lcytxw commented Dec 19, 2017

Stack-Overflow in libsass library
Version : master
Reproduce:
$./sassc poc10

poc download here:
https://github.com/lcytxw/libsass-collAfl/blob/master/poc10

ASAN debugging information:

Program received signal SIGSEGV, Segmentation fault.
0x000000000043f8d0 in strcmp ()
(gdb) bt
#0 0x000000000043f8d0 in strcmp ()
#1 0x00007ffff72f03d4 in std::type_info::operator== (__arg=..., this=)
at /usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/c++/5.2.1/typeinfo:124
#2 Sass::CastSass::Parent_Selector (ptr=) at ./ast.hpp:145
#3 Sass::Complex_Selector::resolve_parent_refs (this=, pstack=..., implicit_parent=true)
at ast.cpp:1295
#4 0x00007ffff72f0041 in Sass::Complex_Selector::resolve_parent_refs (this=, pstack=...,
implicit_parent=true) at ast.cpp:1288
#5 0x00007ffff72f0041 in Sass::Complex_Selector::resolve_parent_refs (this=, pstack=...,
implicit_parent=true) at ast.cpp:1288
#6 0x00007ffff72ef2f9 in Sass::Selector_List::resolve_parent_refs (this=, pstack=...,
implicit_parent=) at ast.cpp:1268
#7 0x00007ffff72f0bab in Sass::Complex_Selector::resolve_parent_refs (this=, pstack=...,
implicit_parent=true) at ast.cpp:1409
#8 0x00007ffff72ef2f9 in Sass::Selector_List::resolve_parent_refs (this=, pstack=...,
implicit_parent=) at ast.cpp:1268
#9 0x00007ffff72f0bab in Sass::Complex_Selector::resolve_parent_refs (this=, pstack=...,
implicit_parent=true) at ast.cpp:1409
...

Credits:

This vulnerability is detected by team OWL337, with our custom fuzzer collAFL. Please contact ganshuitao@gmail.com and chaoz@tsinghua.edu.cn if you need more info about the team, the tool or the vulnerability.

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

1 participant