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

A NPD bug in print-radius.c #779

Open
wurongxin1987 opened this issue Jul 12, 2019 · 0 comments
Open

A NPD bug in print-radius.c #779

wurongxin1987 opened this issue Jul 12, 2019 · 0 comments

Comments

@wurongxin1987
Copy link

To report a security issue please send an e-mail to [email protected].

To report bugs and other problems, contribute patches, request a
feature, provide generic feedback etc please see the file
CONTRIBUTING in the tcpdump source tree root.

In the source file print-radius.c, in the function print_attr_time, it seems that the variable attr_time is some data obtained from network and will be used for constructing the ctime data. The function ctime which is a glibc library may potentially return a null pointer (e.g., invalidate number of attr_time may lead to return null pointer). Then, the newly generated ctime data will be passed to the function strlcpy and be dereferenced at Line 56.

image

image

image

image
image

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant