Skip navigation
Currently Being Moderated

FMS administration api security

Nov 19, 2010 12:00 AM

hi

 

I bet this question has been posted earlier also , but i couldnt find it googling. The method used in FMS admin administration reference to access the admin api is like so:

 

http://www.example.com:1111/admin/getLiveStreamStats?auser=username&ap swd=password

&appInst=name&stream=name  

 

but isn't this unsafe ? i mean any one can see the password this way ??

 
Replies
  • Currently Being Moderated
    Nov 19, 2010 4:12 AM   in reply to rajdeeprath

    That's why we don't expose admin service requests to the public. Do it from the server side.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 19, 2010 4:24 AM   in reply to rajdeeprath

    Few ways to get over this would be to use Server.xml configurations on FMS to allow admin requests only from a trusted domain or a client (IP address) and disallow any other connect requests.

    And using rtmpe to connect to admin server would also be safe since its encrypted.

     

     

    Regards

    Mamata

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 19, 2010 6:21 AM   in reply to mamata_karna

    I think the OP was wondering about exposing the username and password on the client side. If the question was actually about man-in-the-middle attacks sniffing out the credentials when making a server to server request, please correct me.

     

    Regardless of the method being used to make the request of the admin service, never expose the admin service credentials to a client side application, unless that application is only accessible to authorized users who should have access to the FMS admin service. If you provide those credentials (via hard code or via service request) to a client side application that is accessible to the public or otherwise unauthorized admin service users, you immediately compromise your server security.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 19, 2010 6:54 AM   in reply to rajdeeprath

    That's what i thought you meant.

     

    The answer here is, don't do it. If you need to have data from the admin service provided to your client side application, use a server side application (php, asp, .net, etc) to make the request of the FMS admin service, and then pass only the required data to the client side application. That way, you just need to store your FMS admin credentials on the server side, and  you don't expose them elsewhere.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 19, 2010 7:00 AM   in reply to JayCharles

    Alternately, you can connect to the admin service via your FMS application, and then send the required data to the client through the FMs application.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 19, 2010 7:17 AM   in reply to rajdeeprath

    Sure... you can do that. you can use cURL or httprequest on the php side to pull down the data from the FMS admin service, then parse the XML and return the data to the .swf

     

    That said, if the .swf that needs to consume the data is already connected to an FMS application, it may be more efficient to open a connection from the fms application to the admin service, and then have the FMS application send the required data to the .swf over the existing netconnection. That way, you don't need to have the client side app call out to PHP, and the response data will already be native actionscript objects (so you wouldn't have to write code to parse the response data). In this case, you're using the FMS application as a proxy between the client and the admin service.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 19, 2010 9:37 AM   in reply to rajdeeprath

    In that case, you'd want to go the PHP route, since the client is not a .swf already connected to an FMS app.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2010 6:41 AM   in reply to rajdeeprath

    Can you post the code you're using? It's impossible to help troubleshoot without knowing what you're trying to do.

     

    It would also be helpful to understand the architecture of your deployment. What is your PHP environment? Is your HTTP/PHP server running on the same server as FMS? Provide as much information as possible.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 22, 2010 5:45 AM   in reply to rajdeeprath

    I tried to access http://flashvisions.com/fms.php, but it just times out with no response. It's impossible to know what's happening if the php program doesn't output anything and you don't post your code.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points