XSS Protection - Item Protection
XSS Protection - Item Protection
Cross site-scripting (also referred to as XSS) is a web security vulnerability that allows
an attacker to compromise the interactions that users have with a vulnerable application. In a
XSS attack, a web application is sent a script that activates when it is read by a user's browser.
Once activated, these scripts can steal data, even session credentials, and return the information
to the attacker.
Prevention
If the contents of an item contain sensitive data, then you should encrypt the value
when it is stored in the Application Express session state management tables. Otherwise,
anyone with rights to read the Application Express meta data tables could potentially write a
query to extract this sensitive data.
Restricting Characters Entered on an Page Item :
Limit cross site-scripting (XSS) and other injection attacks by restricting the characters users
can save in session state. To accomplish this, edit the page item and configure
the Security, Restricted Characters attribute. Restricted Characters can be saved in session
state. Available options include:
If you select a restriction, Oracle Application Express displays an error message if a user tries
to save data which does not conform to the selected character restriction.
Protecting Form Items :
To prevent Cross-Site Scripting (XSS) attacks, always set Escape special characters
attribute to On.
If you need to render HTML tags stored in the page item or in the entries of a list of
values, you can set this flag to Off. In such cases, you should take additional precautions to
ensure any user input to such fields are properly escaped when entered and before saving.