-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
Bugfix: command injection vulnerabilities #888
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(deleted)
@glaszig any changes? |
yes, see comments in code. |
@glaszig feel free to revert any commits or push other changes. |
Any progress on this? |
reverted the get/post thing. confirmed that unicode wifi name encoding in qr code is broken with this changed. i'll try to figure this out. |
Unicode chars in escapeshellarg are supposedly handled by php locale. however, according to the IEEE 802.11i-2004 spec:
with another footnote:
which suggests we should skip unicode altogether and validate ASCII. |
i'm talking about the ssid, though. not the passphrase ;) |
alright. i tested multibyte functionality with different locales and thus i adopted the original upstream version of the function. imo this is safe as anything inside single-quoted shell strings - like this way, the qr code works with unicode ssid's again. if you guys will approve, i'm done with this one. |
i also added a margin to the qr code because scanning didn't work on dark background (dark theme). |
tested multibyte ssids and confirmed |
@billz hey, the fix in this PR is not complete. Please lmk how can I provide you with the details. |
No description provided.