[RESOLVED] Apparent discrepancy in ABE Rules .pdf

Discussions about the Application Boundaries Enforcer (ABE) module
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

[RESOLVED] Apparent discrepancy in ABE Rules .pdf

Post by Tom T. »

Per ABE Rules .pdf, Section 1 on pg. 2:
Comments are ignored; they can be placed only at the beginning of a line...
This restriction does not seem to be true.

Test case:
Yahoo Classic Mail requires a separate code object to download attachments, which must be TA'd in NS Blocked Objects menu, > page reload, etc. PITA.

Solution: ABE rule:

Code: Select all

#Yahoo mail attachment rule
Site *@http://mud.attach.mail.yahoo.com *@http://*.attach.mail.ymail.com/*
Accept from .mail.yahoo.com
Deny 
Result: Attachments now download without further user permissions.

Test the comment restriction:
Navigate away, or close/restart browser, and modify ABE rule as follows:

Code: Select all

#Yahoo mail attachment rule
Site *@http://mud.attach.mail.yahoo.com *@http://*.attach.mail.ymail.com/* #some comment
Accept from .mail.yahoo.com # some other comment
Deny #lorem ipsum
Click Refresh.
Expected result: Field turns red, indicating syntax error, and box pops up to notify of syntax error X on line Y.
Actual result: Field remains black; no syntax error message.

Go to Classic Yahoo mail and attempt to download an attachment with the above modified rule.
Expected result, per the Rules on comments: Should break the rule, thus requiring manual TA of blocked object the same as without ABE.
Actual result: Attachment downloads without further permissions or problems.

Conclusion: Apparently, comments may be placed on the same line as rule items, not just at the beginning of a line, and need not be the only text on the line.

Any non-Yahoo-Mail-users who want to reproduce this can get a Yahoo mail account for free. Sending yourself an attachment should be sufficient to test.

Giorgio?
_______________

Additional general info that may be useful to Yahoo Mail users:

The second "Site" entry,

Code: Select all

*@http://*.attach.mail.ymail.com/*
was added fairly recently, due to the appearance of a previously-unknown (to me) domain for these code objects, "ymail.com".

This new domain does not always use the 5th-level domain of "mud" (Mail Upload/Download?), but uses various others that may or may not indicate some location or region, or possibly just for load-balancing on the servers.

Therefore, the wildcard was added to the ymail domain.
(Doesn't seem to be necessary on the mail.yahoo.com domain.)

Some time ago, code objects were required for uploads as well, but recently, they seem to work fine without additional Blocked Object permissions.

Yahooapis.com is not required for any of this, although it's required for some other functions, such as editing Contacts, user status, IM, etc.

My whitelist does not include the entire yahoo.com and yimg.com domains, but only mail.yahoo.com and mail.yimg.com, as I don't use scripting at the other services -- News, Finance, etc. -- very often. Your needs may vary.
Last edited by Tom T. on Sat Mar 17, 2012 4:20 am, edited 1 time in total.
Reason: mark as resolved
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Apparent discrepancy in ABE Rules .pdf

Post by Giorgio Maone »

Tom T. wrote: Conclusion: Apparently, comments may be placed on the same line as rule items, not just at the beginning of a line, and need not be the only text on the line.

Any non-Yahoo-Mail-users who want to reproduce this can get a Yahoo mail account for free. Sending yourself an attachment should be sufficient to test.

Giorgio?
Correct (the grammar was slightly tweaked later), but I would still discourage comments in beetween of the line due to ambiguity with URLs ("#" is a valid URL component char) and general legibility issues.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: Apparent discrepancy in ABE Rules .pdf

Post by Tom T. »

Giorgio Maone wrote:Correct (the grammar was slightly tweaked later), but I would still discourage comments in beetween of the line due to ambiguity with URLs ("#" is a valid URL component char) and general legibility issues.
Agree that a comment in the middle of a line is bad. But comments after the end of the line are officially OK, then?

Code: Select all

Site xyz.com #comment on this object
Accept from abc.com #reason why
Deny
Is this to be considered correct, and if so, should a further tweak reflect that?

Thanks for your time.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Apparent discrepancy in ABE Rules .pdf

Post by Giorgio Maone »

Tom T. wrote:

Code: Select all

Site xyz.com #comment on this object
Accept from abc.com #reason why
Deny
Is this to be considered correct, and if so, should a further tweak reflect that?
Done, thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
Post Reply