securityen.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <h3>3proxy security considirations</h3>
  2. </ul>
  3. <ol>
  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 NT/2000/XP/2003 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> 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>Remember, that 'nbname' authentication is not reliable and can be spoofed.
  26. <li>Keep logs in secure location, because some confidential information from
  27. user's request can be logged.
  28. <li>Use -xyz+A character filtering sequences for 'logformat', especially with
  29. ODBC logging to prevent SQL and log record injections.
  30. <li>Immediately report all service crashes to developers
  31. <li>Participate in code audit :)
  32. </ol>
  33. </ol>
  34. <p>
  35. <pre>$Id: securityen.html,v 1.4 2007/05/07 09:16:51 vlad Exp $</pre>