Bug 19127

Summary: Stored XSS in csv-profiles.pl
Product: Koha Reporter: Amit Gupta <amitddng135>
Component: Architecture, internals, and plumbingAssignee: Amit Gupta <amitddng135>
Status: CLOSED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: major    
Priority: P5 - low CC: amit.gupta, amitddng135, chris, fridolin.somers, jonathan.druart, katrin.fischer, kyle, m.de.rooy, mtj, nick, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 19127 - Stored XSS in csv-profiles.pl
[SIGNED OFF] Bug 19127 - Stored XSS in csv-profiles.pl
Bug 19127 - Stored XSS in csv-profiles.pl
Bug 19127: (follow-up) Stored XSS in csv-profiles.pl

Description Amit Gupta 2017-08-16 12:24:09 UTC
Stored XSS in csv-profiles.pl
Comment 1 Amit Gupta 2017-08-16 12:30:09 UTC
Created attachment 66089 [details] [review]
Bug 19127 - Stored XSS in csv-profiles.pl

To Test
1. Hit the page /cgi-bin/koha/tools/csv-profiles.pl?op=add_form
2. Add a text in the field Profile name, Profile description
   and Profile MARC fields that contains js
3. Save the page.
4. Notice js is execute
5. Apply patch and reload, the js is escaped
Comment 2 Katrin Fischer 2017-08-19 08:55:01 UTC
Created attachment 66219 [details] [review]
[SIGNED OFF] Bug 19127 - Stored XSS in csv-profiles.pl

To Test
1. Hit the page /cgi-bin/koha/tools/csv-profiles.pl?op=add_form
2. Add a text in the field Profile name, Profile description
   and Profile MARC fields that contains js
3. Save the page.
4. Notice js is execute
5. Apply patch and reload, the js is escaped

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 3 Marcel de Rooy 2017-08-25 06:40:48 UTC
Created attachment 66450 [details] [review]
Bug 19127 - Stored XSS in csv-profiles.pl

To Test
1. Hit the page /cgi-bin/koha/tools/csv-profiles.pl?op=add_form
2. Add a text in the field Profile name, Profile description
   and Profile MARC fields that contains js
3. Save the page.
4. Notice js is execute
5. Apply patch and reload, the js is escaped

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 4 Jonathan Druart 2017-09-12 14:21:48 UTC
Created attachment 67091 [details] [review]
Bug 19127: (follow-up) Stored XSS in csv-profiles.pl
Comment 5 Katrin Fischer 2017-09-19 21:15:39 UTC
These patches have been pushed to 16.11.x and will be in 16.11.12.
Comment 6 Fridolin Somers 2017-09-22 15:05:48 UTC
These patches have been pushed to 17.05.x and are in 17.05.04.
Comment 7 Jonathan Druart 2017-09-29 15:47:56 UTC
Pushed to master for 17.11, thanks to everybody involved!
Comment 8 Mason James 2017-11-23 22:04:38 UTC
Pushed to 16.05.x, for 16.05.17 release