-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Huge number of false positives for module S14 weak function check (radare) #1319
Comments
Thank you for contributing an issue! Welcome to the EMBA firmware analysis community! We are glad you are here and appreciate your contribution. Please keep in mind our contributing guidelines here and here. If you like EMBA you have the chance to support us by becoming a Sponsor or buying some beer here. To show your love for EMBA with nice shirts or other merch you can check our Spreadshop. This is an automatic message. Allow for time for the EMBA community to be able to read the issue and comment on it. |
Indeed the regex defined in the module are quite generic - see here emba/modules/S14_weak_func_radare_check.sh Line 321 in c345740
|
hmmm, somehow I am not able to reproduce this issue:
=> no results at all |
Sorry, my fault, I screwed up the minimal example by documenting the wrong package. It seems compiler type (or settings) matter. Please try again using the Expected output:
|
looks good ... thank you
|
This issue is stale because it has been open for 28 days with no activity. |
Describe the bug
The Grep commands for identifying weak functions in module S14 are very permissive, leading to a huge number of false positives if identifiers in the binary contain specific keywords like "system". This skews the statistics and hides real weak functions. As an example, the
boost_filesystem
file from the Boost library is used below.To Reproduce
Steps to reproduce the behavior:
html-report/s14_weak_func_radare_check/vul_func_XXX_system-libboost_filesystem.so.1.84.0.html
. Many matches will look as follows, which is definitely not a common weak "system" function:Expected behavior
Identifiers just containing the keywords out-of-context should not be flagged.
The Regex used for flagging these issues should be adapted.
This may be hard, as we still want to identify legit weak function wrappers and variations.
Screenshots
N/A
Desktop
Priority issue
Are you already a Sponsor? - N
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: