Commit 103c376
security: replace document.write with appendChild in agreement/index.html (#28)
Replaces the use of document.write and innerHTML for meta tag injection with a safer DOM manipulation method.
This addresses a security vulnerability where dynamic content was being written to the document using risky methods.
The new implementation uses (doc.head || docEl).appendChild(metaEl), ensuring reliable and safe tag placement.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: sunnylqm <615282+sunnylqm@users.noreply.github.com>1 parent ecd5fdf commit 103c376
1 file changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 153 | + | |
160 | 154 | | |
161 | 155 | | |
162 | 156 | | |
| |||
0 commit comments