Home / Software / Sun Shop / How do I secure the "tell a friend" feature of SunShop 3.5.1?
How do I secure the "tell a friend" feature of SunShop 3.5.1?
Last updated: 06/28/2009
In Sunshop 3.5.1, the Tell a Friend page allows a user to specify the From address, To email address, subject, and message body. This allows someone or a scripted robot to send out spam (albeit at a slow rate) through the server without any checks.
I buttoned this down by removing the subject and message elements, and hardcoding them into the script. Here's how:
Edit the send_to_friend template, and remove the fields for subject and message.
Edit the lang_eng.php
file - change the instructions for tellinstructions - it should not mention editing your personal message anymore.
In the main index.php, search for this: action == "mailtofriend"