[RESOLVED] ABE blocking redirection after following link

Discussions about the Application Boundaries Enforcer (ABE) module
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

[RESOLVED] ABE blocking redirection after following link

Post by Thrawn »

I'm trying to tell ABE to allow a link from our internal wiki (on a 161 143 address) to a service on localhost. However, although ABE permits the initial request, if the service then redirects (even to the same host & port), ABE will block the redirection.

My rule looks like:

Code: Select all

Site LOCAL
Accept from LOCAL ^http://161\.143\.x\.x/.*
Deny
What happens is that I'll get to our service, let's say on localhost port 8080, and then get...an ABE error that the spam filter won't let me post, even in code tags. Aaargh!
Last edited by Thrawn on Wed Oct 10, 2012 12:15 pm, edited 1 time in total.
======
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; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: ABE blocking redirection after following link

Post by Thrawn »

Code: Select all

Deny on {GET redirection target <<< original target of link, internal site hosting link - 6}
======
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; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: ABE blocking redirection after following link

Post by al_9x »

"161.143" or "161.143.0.0/16"
Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: ABE blocking redirection after following link

Post by Thrawn »

al_9x wrote:"161.143" or "161.143.0.0/16"
Ah, yes, I should clarify. My real rule uses a full address, not '\.x\.x', but as it's a work address I'm not going to post it here.

Here's a closer approximation:

Code: Select all

Site LOCAL
Accept from LOCAL ^http://161\.143\.1\.1:1111/.*
Deny
======
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; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: ABE blocking redirection after following link

Post by Tom T. »

Thrawn wrote:... and then get...an ABE error that the spam filter won't let me post, even in code tags. Aaargh!
Try using asterisks to obscure anything that might look spammy:

Code: Select all

L**is Vui**on Ha*db*gs
or something.

If necessary, PM it to me, and I'll post it, although I realize that's a time lag.

Also, have you tried temp-deleting our favorite anti-NAT-pinning rule?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:15.0.1) Gecko/20100101 Firefox/15.0.1
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: ABE blocking redirection after following link

Post by Thrawn »

Tom T. wrote:
Thrawn wrote:... and then get...an ABE error that the spam filter won't let me post, even in code tags. Aaargh!
Try using asterisks to obscure anything that might look spammy:

Code: Select all

L**is Vui**on Ha*db*gs
or something.

If necessary, PM it to me, and I'll post it, although I realize that's a time lag.
Will have a go at that when I'm next at work (taking a week off), or might try to reproduce at home.
Also, have you tried temp-deleting our favorite anti-NAT-pinning rule?
No; the ABE error definitely said that it was the SYSTEM rule that was firing.

It's weird: with the rule that I currently have in place, I can follow a link from remotesite:port to localhost:8080/url1, or from remotesite:port to localhost:8080/url2, but if I follow a link from remotesite:port to localhost:8080/url1, and the service on localhost then redirects me to localhost:8080/url2, ABE blocks the redirection. And the message looks like it's reporting a request origin of 'localhost:8080, remotesite:port'. A compound request origin?!
======
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; Ubuntu; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0.1
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: ABE blocking redirection after following link

Post by Tom T. »

Thrawn wrote:...It's weird: with the rule that I currently have in place, I can follow a link from remotesite:port to localhost:8080/url1, or from remotesite:port to localhost:8080/url2, but if I follow a link from remotesite:port to localhost:8080/url1, and the service on localhost then redirects me to localhost:8080/url2, ABE blocks the redirection. And the message looks like it's reporting a request origin of 'localhost:8080, remotesite:port'. A compound request origin?!
Perhaps ABE fears a nefarious attempt by a (nasty) remotesite to get to /url2 via /url1?

I've not encountered this situation before, so a couple of SWAGs:

1) al_9x was suggesting that you use the /16?

2) Because this includes a local-to-local redirect, perhaps your rule should be a SYSTEM rule, not USER, placed *above* the default SYSTEM rule - or have you already done that?

3) Compound origin? Perhaps try using that in the rule, something like

Code: Select all

Site LOCAL
Accept from localhost:8080 remotesite:port (or however the real data are connected in the error message - comma, slash, space, whatever)
Deny
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:15.0.1) Gecko/20100101 Firefox/15.0.1
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: ABE blocking redirection after following link

Post by Thrawn »

======
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; Ubuntu; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0.1
Post Reply