Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: JavaScript script tags are not sanitized #2

Open
alextiley opened this issue Jul 17, 2018 · 0 comments
Open

Bug: JavaScript script tags are not sanitized #2

alextiley opened this issue Jul 17, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@alextiley
Copy link
Owner

alextiley commented Jul 17, 2018

Example feature:

Scenario Outline: I enter a script tag into a text input
    When I type "<phrase>" into the text field
    Examples:
      | phrase                           |
      | <script>alert('fail');</script>  |

Expected outcome: JSON output should not contain raw JavaScript
Actual outcome: See JSON snippet below

...
{
  "keyword": "When ",
  "line": 183,
  "name": "I type \"<script>alert('fail');</script>\" into the destination search field",
  "id": "I type \"<script>alert('fail');</script>\" into the text field183",
  "tags": [],
  "uri": "/spec/functional/features/MyFeature.feature",
  "result": {
    "status": "passed",
    "duration": 185000000
  },
  "embeddings": []
},
...
@alextiley alextiley added the bug Something isn't working label Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant