lsegal / yard

YARD is a Ruby Documentation tool. The Y stands for "Yay!"
http://yardoc.org
MIT License
1.92k stars 394 forks source link

Don't update window location in frames with javascript #1535

Closed alextwoods closed 4 months ago

alextwoods commented 4 months ago

Description

Don't update the window location in frames.erb when the input contains javascript.

Completed Tasks

RedYetiDev commented 4 months ago

Hi! This pull request won't resolve the issue. XSS will still be possible with data: URLs

alextwoods commented 4 months ago

Good point - I hadn't considered data: since I thought most modern browsers block them in the top frame, but should likely be handled as well.

RedYetiDev commented 4 months ago

I actually currently have an advisory open to resolve this issue, if you'd like I can show you my proposed patch