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

FS#2291 - RPCd crashes with $5$ or $6$ format hashes in shadow(5) with CONFIG_MUSL_DISABLE_CRYPT_SIZE_HACK=y #7179

Closed
openwrt-bot opened this issue May 22, 2019 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

aaronmdjones:

Device: Netgear WNDR3700 & WNDR3800
Architecture: ar71xx
OpenWRT master

Steps to reproduce:

$ openssl rand 12 | base64 EMoT4MFUTh03hwxx $ python >>> import crypt >>> crypt.crypt("password", "$6$EMoT4MFUTh03hwxx$") '$6$EMoT4MFUTh03hwxx$GhP4a6RCDJfpHo9e2SycODiAIiBrJP/bOJvsRu6Ws98n5N8/Mh4esTYvhc1fjDnU8cDl1QduG/eJxHjXq9YGq/' >>> $

root@router:# cp /etc/shadow /etc/shadow.bak
root@router:
# nano /etc/shadow
root@router:# grep root /etc/shadow
root:$6$EMoT4MFUTh03hwxx$GhP4a6RCDJfpHo9e2SycODiAIiBrJP/bOJvsRu6Ws98n5N8/Mh4esTYvhc1fjDnU8cDl1QduG/eJxHjXq9YGq/:17680:0:99999:7:::
root@router:
#

(Try a web login in LuCI ...)

[[https://imgur.com/a/4SgPDEg|Screenshots]]

root@router:~# dmesg [...] [ 4476.842899] do_page_fault(): sending SIGSEGV to rpcd for invalid read access from 00000000 [ 4476.851215] epc = 77ee8cc4 in libc.so[77e72000+99000] [ 4476.856319] ra = 55654147 in rpcd[55651000+a000] root@router:~#

Rebooting fixes it (ostensibly RPCd is restarted) so that LuCI responds again, but the issue persists.

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

No branches or pull requests

1 participant