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

Fix input validation in fiddle idpmock #1309

Merged

Conversation

zarkosimic
Copy link
Contributor

Fixes #1290

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
@maxmarkus maxmarkus self-assigned this Apr 30, 2020
Copy link
Contributor

@maxmarkus maxmarkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's discuss if you want :-)

window.location.href.match(/post_logout_redirect_uri=(.*?)(&|$)/)[1]
);
window.location.href = redirectTo;
const disableJs = redirectTo.replace(/javascript:/gi, '');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if this is enough, since there are tons of possibilities how one could write javascript according to https://owasp.org/www-community/xss-filter-evasion-cheatsheet .. But since we are checking if it starts with window.location.origin I couldn't find a possibility to sneak anything in. Just thinking if we remove that check at all just not to raise wrong safety feelings.

Copy link
Contributor

@JohannesDoberer JohannesDoberer May 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JohannesDoberer JohannesDoberer self-assigned this May 5, 2020
@zarkosimic zarkosimic merged commit 5458ce4 into SAP:master May 15, 2020
@zarkosimic zarkosimic deleted the 1290_input_validation_in_fiddle_idpmock branch May 15, 2020 08:48
JohannesDoberer added a commit that referenced this pull request May 20, 2020
* master:
  Migrate setup scripts to v1 (#1325)
  Add pre commit hook (#1344)
  Update npm dependencies in luigi-landingpage (#1346)
  Added read-only keyword labels to documentation (#1313)
  Cleanup the mock login page (#1340)
  Enable nightly builds (#1334)
  Fix input validation in fiddle idpmock (#1309)
  change travis to fix only on push to master (#1338)
  added selected state (#1326)
  Migrate example apps to v1 (#1311)
  Provide config in JS format to Fiddle e2e tests (#1305)
  Add Youtube section to the landing page and Documentation (#1315)
  Add a note about loadingIndicator to pageErrorHandler  (#1310)
  Run compatibility tests in ci (#1307)
  Add possibility to unload Luigi (#1304)
JohannesDoberer added a commit to JohannesDoberer/luigi that referenced this pull request May 20, 2020
* master:
  Enable nightly builds (SAP#1334)
  Fix input validation in fiddle idpmock (SAP#1309)
  change travis to fix only on push to master (SAP#1338)
  added selected state (SAP#1326)
  Migrate example apps to v1 (SAP#1311)
  Provide config in JS format to Fiddle e2e tests (SAP#1305)
  Add Youtube section to the landing page and Documentation (SAP#1315)
  Add a note about loadingIndicator to pageErrorHandler  (SAP#1310)
  Run compatibility tests in ci (SAP#1307)
  Add possibility to unload Luigi (SAP#1304)
JohannesDoberer added a commit to JohannesDoberer/luigi that referenced this pull request May 20, 2020
* feature-globalsearch:
  Migrate setup scripts to v1 (SAP#1325)
  Add pre commit hook (SAP#1344)
  Update npm dependencies in luigi-landingpage (SAP#1346)
  Added read-only keyword labels to documentation (SAP#1313)
  Cleanup the mock login page (SAP#1340)
  Enable nightly builds (SAP#1334)
  Fix input validation in fiddle idpmock (SAP#1309)
  change travis to fix only on push to master (SAP#1338)
  added selected state (SAP#1326)
  Migrate example apps to v1 (SAP#1311)
  Provide config in JS format to Fiddle e2e tests (SAP#1305)
  Add Youtube section to the landing page and Documentation (SAP#1315)
  Add a note about loadingIndicator to pageErrorHandler  (SAP#1310)
  Run compatibility tests in ci (SAP#1307)
  Add possibility to unload Luigi (SAP#1304)
JohannesDoberer added a commit to JohannesDoberer/luigi that referenced this pull request May 20, 2020
* search-provider-interface:
  Migrate setup scripts to v1 (SAP#1325)
  Add pre commit hook (SAP#1344)
  Update npm dependencies in luigi-landingpage (SAP#1346)
  Added read-only keyword labels to documentation (SAP#1313)
  Cleanup the mock login page (SAP#1340)
  Enable nightly builds (SAP#1334)
  Fix input validation in fiddle idpmock (SAP#1309)
  change travis to fix only on push to master (SAP#1338)
  added selected state (SAP#1326)
  Migrate example apps to v1 (SAP#1311)
  Provide config in JS format to Fiddle e2e tests (SAP#1305)
  Add Youtube section to the landing page and Documentation (SAP#1315)
  Add a note about loadingIndicator to pageErrorHandler  (SAP#1310)
  Run compatibility tests in ci (SAP#1307)
  Add possibility to unload Luigi (SAP#1304)
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security/medium Related to CVSSv3 security rating https://www.first.org/cvss/calculator/3.0 security always set in addition to specific security severity label, since github filtering is lacking OR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input validation in fiddle idpmock
3 participants