Several vectors for JS injection #579

Closed
opened 2012-02-21 12:40:29 +00:00 by rlx · 5 comments
Owner

JS injection via username: Greetings from user <script>alert('0wned!')</script> ...

JS injection via username: Greetings from user `<script>alert('0wned!')</script>` ...
rlx added the
general
label 2012-02-21 12:40:29 +00:00
rlx added this to the 12.03 milestone 2012-02-21 12:40:29 +00:00
0x2620 was assigned by rlx 2012-02-21 12:40:29 +00:00
rlx added the
critical
defect
labels 2012-02-21 12:40:29 +00:00
Author
Owner

Strangely, this user does not show up in the users list.

But by adding annotations, the user can make alerts pop up.

Strangely, this user does not show up in the users list. But by adding annotations, the user can make alerts pop up.
Author
Owner

List names (entered in folder) and list descriptions (entered in dialog) execute JS, too.

List names (entered in folder) and list descriptions (entered in dialog) execute JS, too.
Author
Owner

In Manage Places/Events, if you enter as name or alternative name, the map/calendar will execute this as JS.

Saving seems to be fixed, so dialogs will go after reload.

In Manage Places/Events, if you enter <script>alert('JS injection')</script> as name or alternative name, the map/calendar will execute this as JS. Saving seems to be fixed, so dialogs will go after reload.
rlx changed title from JS injection via username to Several vectors for JS injection 2012-02-21 13:13:45 +00:00
Author
Owner

Another one is:

pandora.api.addAnnotation({item: 'A', layer: 'descriptions', 'in': 23, out: '42', value: '<script>alert("description")</script>'}, function(r) { Ox.print(r.data); })

Another one is: ` pandora.api.addAnnotation({item: 'A', layer: 'descriptions', 'in': 23, out: '42', value: '<script>alert("description")</script>'}, function(r) { Ox.print(r.data); }) `
Author
Owner

By whatever means we fix this, the goal should be that the surface of the fix, i.e. the amount of reasoning needed to verify it's correct, is as small as possible.

By whatever means we fix this, the goal should be that the surface of the fix, i.e. the amount of reasoning needed to verify it's correct, is as small as possible.
j added the
fixed
label 2012-02-22 12:01:38 +00:00
j closed this issue 2012-02-22 12:01:38 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#579
No description provided.