f0a9ca24fd
For now, this checks for a trusted referer (if the BlockUntrustedRefererLinks configuration prop is set) in utl::MediaDescriptor::impl_openStreamWithURL and SvxBrushItem::GetGraphicObject. Checking in additional places will probably be necessary to block /all/ unwanted communication. Also, some places marked /*TODO?*/ currently pass in an empty referer (which is always considered trusted) and will probably need to be adapted. Ideally, Referer URIs would never be empty (and consistently use something like <private:user> for cases where access is explicitly initiated by the user and should never be blocked), but that's a very daunting task, so start small by identifying the places that potentially need blocking and adding appropriate Referer URIs there. Also, Referer information should always be computed as freshly as possible from the context in which an access attempt is made, but, again, always carrying the information from the context all the way to the relevant functions is a very daunting task, so for now store the information upon object instantiation in some cases (SvxBrushItem, SdrGrafObj, ...). The Referer URI (css.document.MediaDescriptor property; SID_REFERER) was already used to track macro execution, and there is one place in SfxApplication::OpenDocExec_Impl where opening of hyperlinks (explicitly clicked by the user) is done that needs the current document's URI as Referer to check execution of macro URIs but needs an empty (or <private:user>, see above) Referer to not block non-macro URIs. Special code has been added there to handle that. Change-Id: Iafbdc07a9fe925d9ee580d4f5778448f18f2ebd9 |
||
---|---|---|
.. | ||
doc | ||
inc | ||
qa/unoapi | ||
sdi | ||
source | ||
uiconfig/ui | ||
util | ||
workben/msview | ||
AllLangResTarget_gal.mk | ||
AllLangResTarget_ofa.mk | ||
AllLangResTarget_svx.mk | ||
AllLangResTarget_textconversiondlgs.mk | ||
Executable_gengal.bin.mk | ||
JunitTest_svx_unoapi.mk | ||
Library_svx.mk | ||
Library_svxcore.mk | ||
Library_textconversiondlgs.mk | ||
Makefile | ||
Module_svx.mk | ||
Package_gengal.mk | ||
README | ||
UIConfig_svx.mk |
Contains graphics related helper code. Lots of the draw and impress code is in this shared library. xoutdev this is where a lot of wht work would happen to move to the canvas. svdraw transparent gradient stuff. Lots of the draw and impress code is in this shared library. Drawing Layer Object diagram: .------- Model ------------. .------- View -----------------------------------------. | SdrObject - ViewContact | 1.* | ViewObjectContact 1.* | | getChild() |-----| getPrimitiveList() -----> Object(s) ---> SdrView | | getVOC() | | getRecPrimitiveList() Contact | | getViewIn...| |___________|__________________________________________| | dependantPrimitiveList() | | |_________________________ | generates ______ | / | .----------------------. | | basePrimitive | | | getRange() |----` | getDecomposition() | |______________________|