-
Notifications
You must be signed in to change notification settings - Fork 11
Patched XSS vulnerablity #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -77,7 +77,7 @@ | |||||||
| <th scope="row" class="check-column"> | ||||||||
| <input type="checkbox" name="post[]" v-model="checkedItems" :value="entry.id"> | ||||||||
| </th> | ||||||||
| <td v-for="(header, index) in columns"><span v-html="entry.fields[index]"></span></td> | ||||||||
| <td v-for="(header, index) in columns"><span>{{ entry.fields[index] }}</span></td> | ||||||||
| <th class="col-entry-details"> | ||||||||
| <template v-if="status == 'trash'"> | ||||||||
| <a href="#" @click.prevent="restore(entry.id)"><?php esc_html_e( 'Restore', 'weforms' ); ?></a> | ||||||||
|
|
@@ -96,7 +96,7 @@ | |||||||
| <th scope="row" class="check-column"> | ||||||||
| <input type="checkbox" name="post[]" v-model="checkedItems" :value="entry.id"> | ||||||||
| </th> | ||||||||
| <td v-for="(header, index) in columns"><span v-html="entry.fields[index]"></span></td> | ||||||||
| <td v-for="(header, index) in columns"><span>{{ entry.fields[index] }}</span></td> | ||||||||
|
||||||||
| <th class="col-entry-details"> | ||||||||
| <template v-if="status == 'trash'"> | ||||||||
| <a href="#" @click.prevent="restore(entry.id)"><?php esc_html_e( 'Restore', 'weforms' ); ?></a> | ||||||||
|
|
@@ -425,7 +425,8 @@ | |||||||
| </div> | ||||||||
| <div v-else-if="field.type === 'country_list_field'">{{ getCountryName( field.value ) }}</div> | ||||||||
| <div v-else-if="field.type === 'address_field'" v-html="getAddressFieldValue( field.value)"></div> | ||||||||
| <div v-else v-html="field.value"></div> | ||||||||
| <div v-else-if="field.type === 'textarea_field'" v-html="field.value"></div> | ||||||||
|
||||||||
| <div v-else-if="field.type === 'textarea_field'" v-html="field.value"></div> | |
| <div v-else-if="field.type === 'textarea_field'" v-html="field.value"></div> | |
| <div v-else-if="field.type === 'file_upload' || field.type === 'image_upload' || field.type === 'signature' || field.type === 'grid'" v-html="field.value"></div> |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,7 +40,8 @@ | |||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||
| <div v-else-if="field.type === 'country_list_field'">{{ getCountryName( field.value ) }}</div> | ||||||||||||||||||||||||||
| <div v-else-if="field.type === 'address_field'" v-html="getAddressFieldValue( field.value)"></div> | ||||||||||||||||||||||||||
| <div v-else v-html="field.value"></div> | ||||||||||||||||||||||||||
| <div v-else-if="field.type === 'textarea_field'" v-html="field.value"></div> | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| <div v-else-if="field.type === 'textarea_field'" v-html="field.value"></div> | |
| <div v-else-if="field.type === 'textarea_field'" v-html="field.value"></div> | |
| <div | |
| v-else-if=" | |
| field.type === 'file_upload' || | |
| field.type === 'image_upload' || | |
| field.type === 'signature_field' || | |
| field.type === 'repeat_field' || | |
| field.type === 'grid_field' | |
| " | |
| v-html="field.value"> | |
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SPA table template in this generated file is now escaping
entry.fields[index], but the source Vue template (assets/spa/components/component-table/template.php) still usesv-htmlfor the same cells. That mismatch is likely to reintroduce the XSS if assets/templates are regenerated from source; update the source template to keep them consistent.