NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 230 231 232 233 234 … 433 Next »
NEWA - TinyURL and security

NEWA - TinyURL and security
NumberFive
Offline

Senior Member

UK/Ireland
Posts: 664
Threads: 153
Joined: Jun 2007
#1
2013-12-24, 11:39 PM
Hi,

Has anyone considered the security of the TinyURLs in NEWA? Are they created on demand when a webpage is viewed, or for every recording in the library in advance?

Is there a way to switch them off? I like the idea, but I'd rather it be done by the NEWA server on my machine and not an external service (e.g. http://<myip>:2846/Tiny.aspx?<small_url>). I worry about links to my webserver on public sites.

Thanks for advice Smile
"It's better than a box!"
raceviper13
Offline

Junior Member

UA
Posts: 33
Threads: 4
Joined: Jun 2007
#2
2013-12-31, 04:51 PM
I agree with NumberFive...
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#3
2013-12-31, 04:57 PM
NEWA is fully open source so you could write your own Tiny.aspx that does what you want. You will need to keep track of the small url you create (so you don't reuse them) and the files they represent.
NumberFive
Offline

Senior Member

UK/Ireland
Posts: 664
Threads: 153
Joined: Jun 2007
#4
2013-12-31, 06:18 PM
Is there an easy way to disable the present TinyURL generation? Smile
"It's better than a box!"
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#5
2013-12-31, 06:50 PM
NumberFive Wrote:Is there an easy way to disable the present TinyURL generation? Smile

There is currently no way to disable the generation.

The use of TinyURL and/or other such services is a general accepted practice. By default you need to log into NEWA from external networks to access your server so there is security to prevent access to your site if the generate URL's are exposed publically.

This is a good example of "not reinventing the wheel" since the effort to develop and maintain a self-hosted solution outweighs the usage of a publically available service.

As whurlston mentioned you can roll-your-own Tiny.aspx and develop out a solution that meets your needs.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,193
Threads: 958
Joined: May 2006
#6
2013-12-31, 11:26 PM
UncleJohnsBand Wrote:As whurlston mentioned you can roll-your-own Tiny.aspx and develop out a solution that meets your needs.

As a quick hack for the most paranoid a user could use notepad edit to web\App_Code\Download_aspx.cs

Code:
public string MakeTinyUrl(string Url)
        {
            [color=#FF0000][b]return Url;[/b][/color]
            Logger.Info("TinyUrl passed in Url: " + Url);
...
        public string MakeTinyUrl2(string Url)
        {
            [color=#FF0000][b]return Url;[/b][/color]
            Logger.Info("TinyUrl2 passed in Url: " + Url);
...

Then while remote the user could use the browser copy to either access directly or paste it into their favourite url shortener.

Martin
NumberFive
Offline

Senior Member

UK/Ireland
Posts: 664
Threads: 153
Joined: Jun 2007
#7
2014-01-01, 11:34 PM
Hi mvallevand,

Thanks, I'll try this in the morning. Smile

The issue I have is that I don't like the idea of a lot of public TinyURL links pointed at my media centre PC's open ports. This seems a rather unnecessary security risk since it is basically throwing an advertisement up on the internet saying there is something interesting at said address. I guess a port scanner would find it anyway, but why add the extra risk. I thought TinyURLs were really only of benefit when someone had to manually type an address in? Much better in my mind would be a button to copy the long URL to the clipboard. About the only use I have for it is to copy it into VLC.

Just my two cents. NEWA is an excellent piece of software! Smile
"It's better than a box!"
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#8
2014-01-02, 04:00 AM
NumberFive Wrote:I thought TinyURLs were really only of benefit when someone had to manually type an address in?
Twitter was the main driving force behind tiny urls. Some URLs could quickly eat the limited character length of a twitter post.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#9
2014-01-02, 04:59 AM (This post was last modified: 2014-01-02, 05:05 AM by UncleJohnsBand.)
Attached is a patch that allows you to disable TinyURL generation.

Stop NPVR Service.
Load the patch.
Start NPVR Service.

This will create a new element in config-web.xml <TinyURLEnabled> defaulted to True.

Change value to False.

Stop/Start NPVR server.

Edit: The Tiny URL functionality was added on 12/31/2009 in EWA carried forward into NEWA. No issues reported from anyone in regards to a security hack due to data found on Tinyurl.com... Smile
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
NumberFive
Offline

Senior Member

UK/Ireland
Posts: 664
Threads: 153
Joined: Jun 2007
#10
2014-01-02, 11:41 AM
Hi UncleJohnsBand,

That's fantastic, thank you very much for this patch! Smile

I know it's paranoia, but in my day job I'm used to seeing remote PCs being port scanned and brute forced, so I'm keen to reduce the exposure of my home PCs.
"It's better than a box!"
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Web streaming security bisonfan 13 4,501 2019-11-06, 01:58 PM
Last Post: mvallevand
  4.04 upgrade: NEWA EPG works but the modern interface is dead sitush 29 7,823 2017-09-30, 08:10 PM
Last Post: sub
  No stream on client, newa or vlc - Unexpected error in RTSPKeepAlive andydld 40 12,131 2017-09-07, 03:35 AM
Last Post: sub
  Nextpvr security Sharpy420 6 2,088 2017-08-29, 08:08 PM
Last Post: mvallevand
  Windows 10 Update killed newa access? psycik 3 2,110 2017-07-13, 08:15 AM
Last Post: psycik
  NextPVR, Transcoding and NEWA wayloncovil 1 1,241 2016-09-23, 06:28 PM
Last Post: mvallevand
  no guide or recordings in newa modern pBS 21 7,148 2016-06-30, 02:48 PM
Last Post: 2leftfeet
  Kernel Security Check Failure ChrisJBuchanan 3 2,276 2016-06-18, 02:10 AM
Last Post: johnsonx42
  Missing channels in NEWA ??? softfoot 2 1,555 2015-10-16, 10:10 AM
Last Post: softfoot
  Anyone unable to use Newa web interface with win 10 64 bit? Jdtaylor 10 3,667 2015-09-27, 10:45 AM
Last Post: Jdtaylor

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode