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

Native libraries do not include stack canary protections #52

Open
AlonsoFloo opened this issue Feb 5, 2025 · 0 comments
Open

Native libraries do not include stack canary protections #52

AlonsoFloo opened this issue Feb 5, 2025 · 0 comments

Comments

@AlonsoFloo
Copy link

Description

Current dotottie android library use a version of libc++_shared.so without stack canary

Concerned files :

armeabiv7a/libc++_shared.so
arm64-v8a/libc++_shared.so
x86/libc++_shared.so
x86_64/libc++_shared.so

Steps to reproduce

Output :

This binary does not have a stack canary value added to the stack. Stack canaries are used to detect and prevent exploits from overwriting return address. Use the option -fstack-protector-all to enable stack canaries. Not applicable for Dart/Flutter libraries unless Dart FFI is used.

Proposition

Update build steps with gcc/clang flag -fstack-protector
Reference : https://developers.redhat.com/articles/2022/06/02/use-compiler-flags-stack-protection-gcc-and-clang#stack_usage_and_statistics

Screenshots

Image
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