In Bootstrap 3.x before 3.4.0 and 4.x-beta before 4.0.0-beta.2, XSS is possible in the data-target attribute, a different vulnerability than CVE-2018-14041.
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
|Name||Vendor||Start Version||End Version|
|CloudForms Management Engine 5.11||RedHat||ansible-runner-0:1.3.4-2.el8ar||*|
|CloudForms Management Engine 5.11||RedHat||ansible-tower-0:3.5.2-1.el8at||*|
|CloudForms Management Engine 5.11||RedHat||cfme-0:22.214.171.124-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||cfme-amazon-smartstate-0:126.96.36.199-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||cfme-appliance-0:188.8.131.52-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||cfme-gemset-0:184.108.40.206-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-cluster-upgrade-0:1.1.13-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-disaster-recovery-0:1.2.0-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-engine-setup-0:1.1.9-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-hosted-engine-setup-0:1.0.26-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-image-template-0:1.1.11-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-infra-0:1.1.12-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-manageiq-0:1.1.14-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-repositories-0:1.1.5-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-roles-0:1.1.7-2.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-shutdown-env-0:1.0.3-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||ovirt-ansible-vm-infra-0:1.1.19-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||prince-0:12.4-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||python3-ovirt-engine-sdk4-0:4.3.2-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||python-bambou-0:3.0.1-2.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||python-colorama-0:0.4.1-1.el8ost||*|
|CloudForms Management Engine 5.11||RedHat||python-daemon-0:2.1.2-9.el8ar||*|
|CloudForms Management Engine 5.11||RedHat||python-funcsigs-0:1.0.2-3.el8ost||*|
|CloudForms Management Engine 5.11||RedHat||python-future-0:0.16.0-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||python-lockfile-1:0.11.0-8.el8ar||*|
|CloudForms Management Engine 5.11||RedHat||python-mock-0:2.0.0-11.el8ost||*|
|CloudForms Management Engine 5.11||RedHat||python-pbr-0:5.1.2-2.el8ost||*|
|CloudForms Management Engine 5.11||RedHat||python-pexpect-0:4.6-2.el8ar||*|
|CloudForms Management Engine 5.11||RedHat||python-psutil-0:5.4.3-5.el8ar||*|
|CloudForms Management Engine 5.11||RedHat||python-pylxca-0:2.1.1-2.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||python-requests-toolbelt-0:0.8.0-2.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||python-tabulate-0:0.8.2-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||python-vspk-0:5.3.2-2.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||qpid-proton-0:0.28.0-1.el8||*|
|CloudForms Management Engine 5.11||RedHat||repmgr10-0:4.0.6-3.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-bcrypt-0:3.1.13-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-byebug-0:11.0.1-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-escape_utils-0:1.2.1-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-ffi-0:1.9.25-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-hamlit-0:2.8.10-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-http_parser.rb-0:0.6.0-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-linux_block_device-0:0.2.1-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-memory_buffer-0:0.1.0-2.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-nio4r-0:2.4.0-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-nokogiri-0:1.8.5-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-ovirt-engine-sdk4-0:4.3.0-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-puma-0:3.7.1-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-qpid_proton-0:0.26.0-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-rugged-0:0.28.2-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-sassc-0:2.0.1-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-sqlite3-0:1.3.13-2.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-surro-gate-0:1.0.5-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-unf_ext-0:0.0.7.6-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||rubygem-websocket-driver-0:0.6.5-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||smem-0:1.4-1.el8cf||*|
|CloudForms Management Engine 5.11||RedHat||v2v-conversion-host-0:1.14.2-1.el8ev||*|
|CloudForms Management Engine 5.11||RedHat||wmi-0:1.3.14-8.el8cf||*|
|Red Hat Decision Manager 7||RedHat||bootstrap||*|
|Red Hat Enterprise Linux 7||RedHat||ipa-0:4.6.8-5.el7||*|
|Red Hat Enterprise Linux 8||RedHat||idm:client-8030020200923172426.05ac3f11||*|
|Red Hat Enterprise Linux 8||RedHat||idm:DL1-8030020200923172343.9c827e52||*|
|Red Hat Enterprise Linux 8||RedHat||pki-core:10.6-8030020200911215836.5ff1562f||*|
|Red Hat Enterprise Linux 8||RedHat||pki-deps:10.6-8030020200527165326.30b713e6||*|
|Red Hat JBoss Enterprise Application Platform 7||RedHat||bootstrap||*|
|Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8||RedHat||eap7-hal-console-0:3.3.16-1.Final_redhat_00001.1.el8eap||*|
|Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9||RedHat||eap7-hal-console-0:3.3.16-1.Final_redhat_00001.1.el9eap||*|
|Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7||RedHat||eap7-hal-console-0:3.3.16-1.Final_redhat_00001.1.el7eap||*|
|Red Hat OpenStack Platform 13.0 (Queens)||RedHat||python-XStatic-Bootstrap-SCSS-0:220.127.116.11-1.el7ost||*|
|Red Hat OpenStack Platform 13.0 (Queens) for RHEL 7.6 EUS||RedHat||python-XStatic-Bootstrap-SCSS-0:18.104.22.168-1.el7ost||*|
|Red Hat Process Automation 7||RedHat||bootstrap||*|
|Red Hat Single Sign-On 7.3||RedHat||bootstrap||*|
|Red Hat Virtualization Engine 4.3||RedHat||ovirt-engine-api-explorer-0:0.0.4-1.el7ev||*|
|Red Hat Virtualization Engine 4.3||RedHat||ovirt-engine-api-explorer-0:0.0.5-1.el7ev||*|
|Red Hat Virtualization Engine 4.3||RedHat||ovirt-engine-ui-extensions-0:1.0.10-1.el7ev||*|
Cross-site scripting (XSS) vulnerabilities occur when:
There are three main kinds of XSS:
Once the malicious script is injected, the attacker can perform a variety of malicious activities. The attacker could transfer private information, such as cookies that may include session information, from the victim’s machine to the attacker. The attacker could send malicious requests to a web site on behalf of the victim, which could be especially dangerous to the site if the victim has administrator privileges to manage that site. Phishing attacks could be used to emulate trusted web sites and trick the victim into entering a password, allowing the attacker to compromise the victim’s account on that web site. Finally, the script could exploit a vulnerability in the web browser itself possibly taking over the victim’s machine, sometimes referred to as “drive-by hacking.” In many cases, the attack can be launched without the victim even being aware of it. Even with careful users, attackers frequently use a variety of methods to encode the malicious portion of the attack, such as URL encoding or Unicode, so the request looks less suspicious.
Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
Examples of libraries and frameworks that make it easier to generate properly encoded output include Microsoft’s Anti-XSS library, the OWASP ESAPI Encoding module, and Apache Wicket.
Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required encoding strategies.
For any data that will be output to another web page, especially any data that was received from external inputs, use the appropriate encoding on all non-alphanumeric characters.
Parts of the same output document may require different encodings, which will vary depending on whether the output is in the:
etc. Note that HTML Entity Encoding is only appropriate for the HTML body.
Consult the XSS Prevention Cheat Sheet [REF-724] for more details on the types of encoding and escaping that are needed.
Use and specify an output encoding that can be handled by the downstream component that is reading the output. Common encodings include ISO-8859-1, UTF-7, and UTF-8. When an encoding is not specified, a downstream component may choose a different encoding, either by assuming a default encoding or automatically inferring which encoding is being used, which can be erroneous. When the encodings are inconsistent, the downstream component might treat some character or byte sequences as special, even if they are not special in the original encoding. Attackers might then be able to exploit this discrepancy and conduct injection attacks; they even might be able to bypass protection mechanisms that assume the original encoding is also being used by the downstream component.
The problem of inconsistent output encodings often arises in web pages. If an encoding is not specified in an HTTP header, web browsers often guess about which encoding is being used. This can open up the browser to subtle XSS attacks.
Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”
Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
When dynamically constructing web pages, use stringent allowlists that limit the character set based on the expected value of the parameter in the request. All input should be validated and cleansed, not just parameters that the user is supposed to specify, but all data in the request, including hidden fields, cookies, headers, the URL itself, and so forth. A common mistake that leads to continuing XSS vulnerabilities is to validate only fields that are expected to be redisplayed by the site. It is common to see data from the request that is reflected by the application server or the application that the development team did not anticipate. Also, a field that is not currently reflected may be used by a future developer. Therefore, validating ALL parts of the HTTP request is recommended.
Note that proper output encoding, escaping, and quoting is the most effective solution for preventing XSS, although input validation may provide some defense-in-depth. This is because it effectively limits what will appear in output. Input validation will not always prevent XSS, especially if you are required to support free-form text fields that could contain arbitrary characters. For example, in a chat application, the heart emoticon ("<3") would likely pass the validation step, since it is commonly used. However, it cannot be directly inserted into the web page because it contains the “<” character, which would need to be escaped or otherwise handled. In this case, stripping the “<” might reduce the risk of XSS, but it would produce incorrect behavior because the emoticon would not be recorded. This might seem to be a minor inconvenience, but it would be more important in a mathematical forum that wants to represent inequalities.
Even if you make a mistake in your validation (such as forgetting one out of 100 input fields), appropriate encoding is still likely to protect you from injection-based attacks. As long as it is not done in isolation, input validation is still a useful technique, since it may significantly reduce your attack surface, allow you to detect some attacks, and provide other security benefits that proper encoding does not address.
Ensure that you perform input validation at well-defined interfaces within the application. This will help protect the application even if a component is reused or moved elsewhere.