Opened 6 years ago
Closed 4 years ago
#5422 closed defect (bug) (fixed)
Sanitize plugin update information
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Security | Version: | 2.3.1 |
| Severity: | critical | Keywords: | needs-patch |
| Cc: |
Description
The update data retrieved from WP.org is trusted to be safe and HTML encoded. We shouldn't make this assumption, plus we should to kses the plugin's name.
Attached is a proposed patch. Seems to work okay.
Attachments (6)
Change History (23)
Viper007Bond
— 6 years ago
comment:1
westi
— 6 years ago
- Owner changed from anonymous to westi
- Status changed from new to assigned
comment:2
Denis-de-Bernardy
— 4 years ago
- Component changed from Administration to Security
- Milestone changed from 2.9 to 2.8
comment:3
hakre
— 4 years ago
- Keywords 2nd-opinion removed
- Severity changed from normal to critical
+1. putput should be properly encoded / formatted! this is security related and solved, so please fix.
comment:5
hakre
— 4 years ago
The patch is pretty old, I will create an update. attr() should be used.
comment:7
Denis-de-Bernardy
— 4 years ago
- Keywords tested added; dev-feedback removed
patch applies cleanly. clean_url should be used on the urls. else good to go imo.
comment:8
Denis-de-Bernardy
— 4 years ago
- Keywords needs-patch added; has-patch tested removed
- Milestone changed from 2.8 to Future Release
patch is broken
comment:9
hakre
— 4 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Future Release to 2.8
Please Check.
comment:10
Denis-de-Bernardy
— 4 years ago
- Keywords tested commit added
comment:11
ryan
— 4 years ago
- Resolution set to fixed
- Status changed from assigned to closed
comment:12
hakre
— 4 years ago
& were not properly handeled. wp_nonce_url does not need it in input and the other three urls needed a esc_attr() to have them.
comment:13
hakre
— 4 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
comment:14
Denis-de-Bernardy
— 4 years ago
shouldn't clean_url() be used here, rather?
comment:15
Denis-de-Bernardy
— 4 years ago
- Keywords needs-patch added; has-patch tested commit removed
comment:16
hakre
— 4 years ago
clean_url() can be used, esc_attr() does the job as well: see #9432 .
comment:17
azaozz
— 4 years ago
- Resolution set to fixed
- Status changed from reopened to closed
+1 to that. See also #7875