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

Nexmon introduces local InfoDisclosure vulnerability?? #587

Open
danielcunn123 opened this issue Dec 5, 2023 · 2 comments
Open

Nexmon introduces local InfoDisclosure vulnerability?? #587

danielcunn123 opened this issue Dec 5, 2023 · 2 comments

Comments

@danielcunn123
Copy link

CWE-214: Invocation of Process Using Visible Sensitive Information
CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere
CWE-548: Exposure of Information Through Directory Listing

Through static code analysis it's possible to determine the source code directory used for driver compilation, otherwise known as the Nexmon PATH. The driver directly references source code locations whereas common drivers implement relative path references based on binary location, such as the linux bluetooth.ko driver.

Is it even possible to reference 'warn_slowpath_fmt' to a relative location?

Unsure if this is present within nexmon patched android firmware.

An attacker with local access may gain insight to compiler and source code locations on the system, also determine modified wireless firmware with low privilages.

Screenshot from 2023-12-05 18-09-42
Screenshot from 2023-12-05 18-12-09
Screenshot from 2023-12-05 18-13-44
Screenshot from 2023-12-05 18-26-20

@danielcunn123 danielcunn123 changed the title Is this an InfoDisclosure vulnerability?? Nexmon introduces local InfoDisclosure vulnerability?? Dec 5, 2023
@jlinktu
Copy link
Member

jlinktu commented Dec 5, 2023

This seems to be specific to the brcmfmac building within nexmon. Firmware patches should not be affected by this.

@danielcunn123
Copy link
Author

This seems to be specific to the brcmfmac building within nexmon. Firmware patches should not be affected by this.

Yes the kernel driver to be more specific.

Since Nexmon is technically release software its best pratice to use relative paths when compiling drivers, so patching 'NEXMON_ROOT' should resolve the path issue.

A similar issue was rust incorrectly remapping 'rust-src' and defaulting to fullpath for rust applications, disclosing many developer usernames within many binaries...

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

2 participants