Forum

You are not logged in. Please note that you need to log in before posting.

Dear friends! Please note that hitAppoint will be on holidays till June 12, 2011 with a limited online access. We apologize for delayed replies. Every request will be promptly resolved on return.

  • Index
  •  » Problems
  •  » dangerous security threat - user entered HTML will execute as admin

#1 2010-07-21 20:39:45

HowToMove
Member
Registered: 2010-05-01
Posts: 118
Website

dangerous security threat - user entered HTML will execute as admin

Please take this as a priority security request and close this hole before it's exploited.
ALL user inputs should be stripped of ANY html tags and special characters on input.

I added a custom form field to appointments, a text box for comments. Just now I thought to enter an IFrame tag there, and sure enough, a foreign script will run INSIDE THE ADMIN'S LOGIN when they are reviewing that appointment. The IFrame tag is also in the email sent to admin for review of the new user, so depending on the mail client admin's email may be compromised also.

So, I think, maybe it's just the custom fields that are the problem. NOPE. I registered as a new user, putting an img src tag into the first name field. Sure enough, when admin goes to review pending users THAT IMAGE APPEARS on the user browsing page in the first name column.

This is a huge risk, allowing html/java/iframe/img tags or commands to be executed while admin is logged in. Coded picture URLs, for example, are often used to track spam and can be used to capture the "referrer" or the URL you use as admin.

PLEASE, and SOON, sanitize all user inputs from all text or textarea forms!

Offline

 
  • Index
  •  » Problems
  •  » dangerous security threat - user entered HTML will execute as admin

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson