Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdgregson committed Jan 2, 2021
1 parent e512734 commit c6a7954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xfinity/xb3-authenticated-reflected-xss/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Xfinity Gateway XB3 - Authenticated Reflected XSS
The administrative interface of Xfinity Gateway model XB3 (and possibly others) will execute arbitrary JavaScript if sent a specially crafted POST request by an a logged in administrator.
The administrative interface of Xfinity Gateway model XB3 (and possibly others) will execute arbitrary JavaScript if sent a specially crafted POST request by a logged in administrator.

## Details
The `/wizard_step2.php` page takes a POST parameter `userPassword` and unsafely echoes it to JavaScript on the page:

var newPassword = '<?php if("admin" == $_SESSION["loginuser"]) echo $_POST["userPassword"]; ?>';

Arbitrary JavaScript can be executed if the following payload is sent in the `userPassword` POST parameter:
Arbitrary JavaScript can be executed if the following payload is sent to the page in the `userPassword` POST parameter:

';}alert(1);function foo() {var foo = '

Expand Down

0 comments on commit c6a7954

Please sign in to comment.