IV83117: Note editor allows you to enter HTML that fires an alert

A cross-site scripting (XSS) attack occurs when an attacker uses a web application to inject malicious code in the form of a client-side script (arbitrary JavaScript) to an end user. Here’s one example of many throughout the application:

  • Attack value: <p>123</p><p><input onclick=”alert(1234)” type=”text”/></p>

Steps to replicate:

  • 1. Login to the application.
  • 2. Click on the Help link.
  • 3. Click on the HTML link of the editor to open the HTML source editor.
  • 4. Apply the attack value and click on the Update button.
  • 5. Click on the Save button.
  • 6. Click on the recently added value.

We needed the ability to disable the HTML Editor in Note fields. A new property is added in the TRIRIGAWEB.properties called TINYMCE_HTML_EDITOR_ENABLED. This property will determine if the “HTML Editor” button will be displayed in form Note fields. By default, the value of this property is set to true, which will display the button in Note fields. Note fields are vulnerable to attack if the button is enabled.

Continue reading


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.