securityen.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <h3>3proxy security considirations</h3>
  2. </ul>
  3. <ul>
  4. <li>Never install 3proxy suid. If you need it to run suid write some
  5. wrapper with fixed configuration file.
  6. <li>Make configuration file only available to account 3proxy starts with.
  7. <li>Under Windows if 3proxy is used as service create new
  8. unprivileged local account without "logon locally" right. Assign this account
  9. to 3proxy service.
  10. <li>Under unix use chroot to jail 3proxy (make sure files included in
  11. configuration file after 'chroot' command, if any, are available from jail)
  12. <li>Under Unix, either start 3proxy with unprivileged account or, if you need
  13. some privileged ports to be used by 3proxy, use setgid/setuid commands inside
  14. 3proxy.cfg immediately after last occurance of service binded to
  15. privileged port in configuration file (setgid must preceed setuid).
  16. <li>Allways use full paths in configuration file
  17. <li>Try to avoid 'strong' authentication, because only cleartext
  18. authentication method is currently available.
  19. <li>Always specify internal and external interfaces.
  20. <li>Always limit connections to internal network and localhost (to 127.0.0.1 and
  21. all interfaces) with ACLs. Be carefull, because BIND command in SOCKS requies
  22. BIND method with external interface IP address to be allowed.
  23. <li> Before 3proxy 0.8 always use nserver and nscache under Unix, overwise DoS attack is possible
  24. with unreachable DNS server (because gethostbyname will block over threads).
  25. <li>Keep logs in secure location, because some confidential information from
  26. user's request can be logged.
  27. <li>Use -xyz+A character filtering sequences for 'logformat', especially with
  28. ODBC logging to prevent SQL and log record injections.
  29. <li>Immediately report all service crashes to developers
  30. <li>Participate in code audit :)
  31. </ol>
  32. </ul>
  33. <p>