Allow XSS only for peeep.us in order for bookmarklet to work

Ask for help about NoScript, no registration needed to post
libastral
Posts: 6
Joined: Sat May 12, 2012 7:49 pm

Allow XSS only for peeep.us in order for bookmarklet to work

Post by libastral »

How to whitelist only peeep.us? Their bookmarklet doesn't work when XSS protection is enabled.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:16.0) Gecko/20121026 Firefox/16.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Allow XSS only for peeep.us in order for bookmarklet to

Post by Thrawn »

Options-Advanced-XSS

You'll need to know regular expressions. If you don't, then you can post a sample error here from the Error Console (Ctrl+Shift+J, or Firefox Tools > Web Developer > Error Console) to get help.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (Linux; U; Android 2.3.6; en-au; GT-S5830 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
libastral
Posts: 6
Joined: Sat May 12, 2012 7:49 pm

Re: Allow XSS only for peeep.us in order for bookmarklet to

Post by libastral »

Well, yeah I know nothing about these expressions. This is the console log: http://paste2.org/p/2475125
If someone can provide the expression I would be grateful.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:16.0) Gecko/20121026 Firefox/16.0
User avatar
therube
Ambassador
Posts: 7980
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Allow XSS only for peeep.us in order for bookmarklet to

Post by therube »

What sites are generating the XSS warnings?

Original: http://www.gena01.com/

peeep, not allowed, nor is gena01: http://www.peeep.us/7471bc7a
peeep, not allowed, but gena01 is: http://www.peeep.us/bdcfe429


Ah, its only when you have allowed peeep.com that the XSS is generated.

Code: Select all

[NoScript XSS] Sanitized suspicious upload to [http://www.peeep.us/upload.php] from [http://www.gena01.com/]: transformed into a download-only GET request.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Firefox/17.0 SeaMonkey/2.14
User avatar
therube
Ambassador
Posts: 7980
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Allow XSS only for peeep.us in order for bookmarklet to

Post by therube »

peeep allowed, gena01 allowed, & an XSS Exception: http://www.peeep.us/92c6fa2e

XSS Exception:

Code: Select all

^http://www.peeep.us/upload.php
(don't hold me to this, i'm not good with them & don't really know if this is not specific or not, but looks to work)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Firefox/17.0 SeaMonkey/2.14
libastral
Posts: 6
Joined: Sat May 12, 2012 7:49 pm

Re: Allow XSS only for peeep.us in order for bookmarklet to

Post by libastral »

therube wrote:peeep allowed, gena01 allowed, & an XSS Exception: http://www.peeep.us/92c6fa2e

XSS Exception:

Code: Select all

^http://www.peeep.us/upload.php
(don't hold me to this, i'm not good with them & don't really know if this is not specific or not, but looks to work)
Thanks a lot, it worked!
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:16.0) Gecko/20121026 Firefox/16.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Allow XSS only for peeep.us in order for bookmarklet to

Post by Thrawn »

Try escaping the dots:

Code: Select all

^https?://www\.peeep\.us/upload\.php
Otherwise it would also match eg www-peeep.us/upload.php. No big deal, but the tighter the better.

Is there a legitimate reason for this bookmarklet to send requests that look like HTML/JavaScript? If not, then you might want to contact peeep.us and ask why.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Linux i686; rv:12.2) Gecko/20121102 PaleMoon/12.2
Post Reply