NodeGoat icon indicating copy to clipboard operation
NodeGoat copied to clipboard

Restore A9 Insecure Components vulnerability

Open rcowsill opened this issue 5 years ago • 6 comments
trafficstars

The A9: Insecure Components vulnerability tutorial refers to the use of an insecure version of the Marked library, making the memos page vulnerable to XSS.

It appears that the project was upgraded to use marked 0.3.9, which fixed this vulnerability. This means none of the example exploit strings in the tutorial result in a successful XSS attack.

I think the package.json needs to specify marked 0.3.5, as that is the last version with the XSS vulnerability.

Note that this is also relevant to PR #169, which currently specifies the 0.3.9 version instead of 0.3.5.

rcowsill avatar Jun 06 '20 13:06 rcowsill

@rcowsill Thanks for reporting the issue. 👍

You are right about it. Will will add it in our backlog. In case you have bandwidth, we will be happy to merge a PR with the required fix.

ckarande avatar Jun 09 '20 19:06 ckarande

Would you want that PR from a feature branch in a fork of master?

rcowsill avatar Jun 12 '20 10:06 rcowsill

Yes @rcowsill from and against feature/187 as we are implementing Lerna #187 (PR pending: #189)

UlisesGascon avatar Jun 13 '20 09:06 UlisesGascon

As discussed in #206, I'm going to add a test to confirm this vulnerability is present and functioning as expected. PR for that to follow...

rcowsill avatar Aug 08 '20 18:08 rcowsill

PR #208 containing the A9 test has been merged into feature/187. Should this issue be closed now, or should it be kept around until #187 is merged into master?

rcowsill avatar Aug 10 '20 11:08 rcowsill

ahh, I didn't even notice it's not PRed to the master branch @UlisesGascon can you advise?

lirantal avatar Aug 10 '20 11:08 lirantal