What's new

asd process of asuswrt has bug in feature of blockfile

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ytnbfirewings

New Around Here
All asus routers have a process named asd for some security check, but it has bug in feature of blockfile, this may wastes your CPU time and reduces the life of your router's flash.
When copy file in blacklist(for example: frpc) to /jffs/, if file size bigger than 10240, file will be move to /jffs/asd in fucntion _dump_malicious_script, but this will cause inotify file watcher do blockile check again. Finally, you will get a infinite loop.
I have report this bug to ASUS.
You can fix it by patch code in function _dump_malicious_script.(change backup dir from /jffs/asd to /jffs/.asdbk)
Asuswrt does not provide asd and libasd.so source code, so you can only patch the libasd.so binary file or runtime memory.

asdlog.png


bugcode.jpg
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top