Bug 1516546 - rubygem-cucumber: HTML injection in HTML formatter message output
Summary: rubygem-cucumber: HTML injection in HTML formatter message output
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1516548 1516547
Blocks: 1516549
TreeView+ depends on / blocked
 
Reported: 2017-11-22 21:31 UTC by Pedro Sampaio
Modified: 2021-02-17 01:12 UTC (History)
14 users (show)

Fixed In Version: rubygem-cucumber 3.1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-27 00:49:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2017-11-22 21:31:43 UTC
A flaw was found in cucumber HTML formatter. It appends any scenario output to the HTML without escaping HTML tags in the messages. This means that any output from the steps gets injected into the report page and could lead to cross-site scripting attacks.

Comment 1 Pedro Sampaio 2017-11-22 21:32:31 UTC
Created rubygem-cucumber tracking bugs for this issue:

Affects: epel-7 [bug 1516548]
Affects: fedora-all [bug 1516547]

Comment 3 Stefan Cornelius 2017-11-29 11:18:14 UTC
Statement:

Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Comment 4 Pavel Valena 2017-12-08 14:26:22 UTC
Note that cucumber is usually used solely for writing tests[1] and not for rendering any production website code (or similar).

[1] https://github.com/cucumber/cucumber-ruby#cucumber


Note You need to log in before you can comment on or make changes to this bug.