File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
security-header/src/main/webapp Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 33<head >
44 <title >Content Security Policy Level 2: Protected</title >
55</head >
6- <body style = " background-color : deeppink " >
6+ <body >
77<iframe src =" protectedForm.jsp" id =" form" style =" border : 0 ; width : 100% ; height : 100% " >
88</iframe >
9- <div style =" position : absolute ; top : 0 ; left : 0 ; width : 50% ; height : 50% ; border : 5 pt solid orange ;" >
9+ <div style =" position : absolute ; top : 0 ; left : 0 ; width : 50% ; height : 50% ; background-color : orange ; opacity : 0.3 ;" >
1010 <form name =" fakeLoginForm" action =" FakeServlet" method =" post" >
1111 <div style =" position : absolute ; top : 30px ; left : 190px ;" >
1212 <input style =" width : 175px ; height : 25px ;" type =" text" name =" username" id =" username" />
1515 <div style =" position : absolute ; top : 72px ; left : 190px ;" >
1616 <input style =" width : 175px ; height : 25px ;" type =" password" name =" password" id =" password" />
1717 </div >
18- <div id =" hiddenButton" style =" cursor : pointer ; position : absolute ; top : 105 px ; left : 275 px ; z-index : 1 ; width : 90 px ; height : 40 px ; border : 5 pt solid red ;" >
19- <input type =" submit" value =" Send" style =" position : relative ; top : 5px ; left : 5px ; width : 80 px ; height : 30px ; cursor : pointer ; " />
18+ <div id =" hiddenButton" style =" cursor : pointer ; position : absolute ; top : 110 px ; left : 280 px ; z-index : 1 ; width : 95 px ; height : 45 px ;" >
19+ <input type =" submit" value =" Send" style =" position : relative ; top : 5px ; left : 5px ; width : 85 px ; height : 30px ; cursor : pointer ; " />
2020 </div >
2121 </form >
2222</div >
Original file line number Diff line number Diff line change 33<head >
44 <title >Content Security Policy Level 2: Unprotected</title >
55</head >
6- <body style = " background-color : deeppink " >
6+ <body >
77<iframe src =" unprotectedForm.jsp" id =" form" style =" border : 0 ; width : 100% ; height : 100% " >
88</iframe >
9- <div style =" position : absolute ; top : 0 ; left : 0 ; width : 50% ; height : 50% ; border : 5 pt solid orange ;" >
9+ <div style =" position : absolute ; top : 0 ; left : 0 ; width : 50% ; height : 50% ; background-color : orange ; opacity : 0.3 ;" >
1010 <form name =" fakeLoginForm" action =" FakeServlet" method =" post" >
1111 <div style =" position : absolute ; top : 30px ; left : 190px ;" >
1212 <input style =" width : 175px ; height : 25px ;" type =" text" name =" username" id =" username" />
1515 <div style =" position : absolute ; top : 72px ; left : 190px ;" >
1616 <input style =" width : 175px ; height : 25px ;" type =" password" name =" password" id =" password" />
1717 </div >
18- <div id =" hiddenButton" style =" cursor : pointer ; position : absolute ; top : 105 px ; left : 275 px ; z-index : 1 ; width : 90 px ; height : 40 px ; border : 5 pt solid red ;" >
19- <input type =" submit" value =" Send" style =" position : relative ; top : 5px ; left : 5px ; width : 80 px ; height : 30px ; cursor : pointer ; " />
18+ <div id =" hiddenButton" style =" cursor : pointer ; position : absolute ; top : 110 px ; left : 280 px ; z-index : 1 ; width : 95 px ; height : 45 px ;" >
19+ <input type =" submit" value =" Send" style =" position : relative ; top : 5px ; left : 5px ; width : 85 px ; height : 30px ; cursor : pointer ; " />
2020 </div >
2121 </form >
2222</div >
Original file line number Diff line number Diff line change 33<head >
44 <title >X-Frame-Options: Protected</title >
55</head >
6- <body style = " background-color : deeppink " >
6+ <body >
77<iframe src =" protectedForm.jsp" id =" form" style =" border : 0 ; width : 100% ; height : 100% " >
88</iframe >
9- <div style =" position : absolute ; top : 0 ; left : 0 ; width : 50% ; height : 50% ; border : 5 pt solid orange ;" >
9+ <div style =" position : absolute ; top : 0 ; left : 0 ; width : 50% ; height : 50% ; background-color : orange ; opacity : 0.3 ;" >
1010 <form name =" fakeLoginForm" action =" FakeServlet" method =" post" >
1111 <div style =" position : absolute ; top : 30px ; left : 190px ;" >
1212 <input style =" width : 175px ; height : 25px ;" type =" text" name =" username" id =" username" />
1515 <div style =" position : absolute ; top : 72px ; left : 190px ;" >
1616 <input style =" width : 175px ; height : 25px ;" type =" password" name =" password" id =" password" />
1717 </div >
18- <div id =" hiddenButton" style =" cursor : pointer ; position : absolute ; top : 105 px ; left : 275 px ; z-index : 1 ; width : 90 px ; height : 40 px ; border : 5 pt solid red ;" >
19- <input type =" submit" value =" Send" style =" position : relative ; top : 5px ; left : 5px ; width : 80 px ; height : 30px ; cursor : pointer ; " />
18+ <div id =" hiddenButton" style =" cursor : pointer ; position : absolute ; top : 110 px ; left : 280 px ; z-index : 1 ; width : 95 px ; height : 45 px ;" >
19+ <input type =" submit" value =" Send" style =" position : relative ; top : 5px ; left : 5px ; width : 85 px ; height : 30px ; cursor : pointer ; " />
2020 </div >
2121 </form >
2222</div >
Original file line number Diff line number Diff line change 33<head >
44 <title >X-Frame-Options: Unprotected</title >
55</head >
6- <body style = " background-color : deeppink " >
6+ <body >
77<iframe src =" unprotectedForm.jsp" id =" form" style =" border : 0 ; width : 100% ; height : 100% " >
88</iframe >
9- <div style =" position : absolute ; top : 0 ; left : 0 ; width : 50% ; height : 50% ; border : 5 pt solid orange ;" >
9+ <div style =" position : absolute ; top : 0 ; left : 0 ; width : 50% ; height : 50% ; background-color : orange ; opacity : 0.3 ;" >
1010 <form name =" fakeLoginForm" action =" FakeServlet" method =" post" >
1111 <div style =" position : absolute ; top : 30px ; left : 190px ;" >
1212 <input style =" width : 175px ; height : 25px ;" type =" text" name =" username" id =" username" />
1515 <div style =" position : absolute ; top : 72px ; left : 190px ;" >
1616 <input style =" width : 175px ; height : 25px ;" type =" password" name =" password" id =" password" />
1717 </div >
18- <div id =" hiddenButton" style =" cursor : pointer ; position : absolute ; top : 105 px ; left : 275 px ; z-index : 1 ; width : 90 px ; height : 40 px ; border : 5 pt solid red ;" >
19- <input type =" submit" value =" Send" style =" position : relative ; top : 5px ; left : 5px ; width : 80 px ; height : 30px ; cursor : pointer ; " />
18+ <div id =" hiddenButton" style =" cursor : pointer ; position : absolute ; top : 110 px ; left : 280 px ; z-index : 1 ; width : 95 px ; height : 45 px ;" >
19+ <input type =" submit" value =" Send" style =" position : relative ; top : 5px ; left : 5px ; width : 85 px ; height : 30px ; cursor : pointer ; " />
2020 </div >
2121 </form >
2222</div >
You can’t perform that action at this time.
0 commit comments