Radio TV Stage Test Wowza Backdoor
Background info, not necessary for testing: Now, the doms plugins decode the right filename from 1, but if the doms plugin is not on the classpath, the execution just contiues onto the flvplayer. The flv player just reads the value of 2, and attempts to play it. If it is configured to request files from the correct folder, it will play. The simple workaround is to have the wowza config point to a wrong folder (so that flvplayer cannot play on it's own) but to have the domsplugins be able to decode the correct location of the video file. Thus, the video should not be played unless the domsplugin is actually run.
We discovered an unfortunate backdoor in the wowza plugin. The problem goes as follows When summa requests to play a file, they send two parameters
Test no backdoor for doms plugin
- Find a shard pid of a recording that has already been trancoded.
- Open a simple-flash-player (that came with Wowza).
POST http://alhena:7980/authchecker/issueTicket?username=172.18.243.211&url=http://www.statsbiblioteket.dk/doms/shard/uuid:f39fa734-f78b-412a-aa81-23e08e18e1af
Enter in the simple-flash-player (first field) : rmtp://iapetus:<PORTNUMBER>/doms?shard=http://www.statsbiblioteket.dk/doms/shard/<INSERT_UUID_HERE>&ticket=<INSERT_TICKET_HERE>
Enter in the simple-flash-player (second field) : flv:<INSERT_UUID_HERE>.flv
- Verify that the video is played.
Go into the services/doms_wowza_vhost folder of iapetus
mv applications/lib .
- Restart wowza
Now
- Open a simple-flash-player (that came with Wowza).
POST http://alhena:7980/authchecker/issueTicket?username=172.18.243.211&url=http://www.statsbiblioteket.dk/doms/shard/uuid:f39fa734-f78b-412a-aa81-23e08e18e1af
Enter in the simple-flash-player (first field) : rmtp://iapetus:<PORTNUMBER>/doms?shard=http://www.statsbiblioteket.dk/doms/shard/<INSERT_UUID_HERE>&ticket=<INSERT_TICKET_HERE>
Enter in the simple-flash-player (second field) : flv:<INSERT_UUID_HERE>.flv
- You should get "unable to find stream" error or something similar.
Clean up
Go into the services/doms_wowza_vhost folder of iapetus
mv lib applications/
- Restart wowza
Test no backdoor for domslive plugin
- Find a shard pid of a recording that has already been trancoded.
- Open a simple-flash-player (that came with Wowza).
POST http://alhena:7980/authchecker/issueTicket?username=172.18.243.211&url=http://www.statsbiblioteket.dk/doms/shard/uuid:f39fa734-f78b-412a-aa81-23e08e18e1af
Enter in the simple-flash-player (first field) : rmtp://iapetus:<PORTNUMBER>/domslive?shard=http://www.statsbiblioteket.dk/doms/shard/<INSERT_UUID_HERE>&ticket=<INSERT_TICKET_HERE>
Enter in the simple-flash-player (second field) : <INSERT_HERE_THE_MD5_SUM_OF_THE_TICKET>.stream (generate md5 sum from some page found thru google)
- Verify that the video is played.
Go into the services/doms_wowza_vhost folder of iapetus
mv applications/lib .
- Restart wowza
Now
- Open a simple-flash-player (that came with Wowza).
POST http://alhena:7980/authchecker/issueTicket?username=172.18.243.211&url=http://www.statsbiblioteket.dk/doms/shard/uuid:f39fa734-f78b-412a-aa81-23e08e18e1af
Enter in the simple-flash-player (first field) : rmtp://iapetus:<PORTNUMBER>/domslive?shard=http://www.statsbiblioteket.dk/doms/shard/<INSERT_UUID_HERE>&ticket=<INSERT_TICKET_HERE>
Enter in the simple-flash-player (second field) : <INSERT_HERE_THE_MD5_SUM_OF_THE_TICKET>.stream (generate md5 sum from some page found thru google)
- You should get "unable to find stream" error or something similar.
Clean up
Go into the services/doms_wowza_vhost folder of iapetus
mv lib applications/
- Restart wowza