I think that this practice violates the usual "confidentiality agreement" that presents (formally, or customary) in a review process. However, I would agree that this is a common practice, and for some people it is just hard to work on their own, although technically you are supposed to give your own opinion on a paper you review.
I would say that if you really need to show the paper you review to someone else, you should check the following boxes:
- make sure the person understands that they are looking on a paper under review, and agrees to maintain the confidentiality, i.e.: not to talk about the ideas from the paper with someone else, not to produce own work based on these results until they are made public, etc.
- The actual material paper, and the file, do not change hands: do not send the pdf manuscript to your colleagues, do not leave the printed paper with them for a while.
- Ask specific question(s) about the paper, for which you need second advice, not just a general opinion. Remember, that you are reviewingshould review the manuscript yourself. Definitely do not use the second opinion to shake some work off your shoulders and go.