How can I add a "Draft" or "Obsolete" watermark to a page in Confluence?
Somthing similar
http://wiki.customware.net/repository/display/AtlassianPlugins/Page+Approval+Plugin
Perfect, that's exactly what I was looking for, thanks. Is that macro available for download?
I've taken the original macro and updated it for Confluence 4.x. You'll find it in the shared user macro library here.
Hi Charles - is this macro compatible with Confluence version 5.2? I tried using the macro but the image won't show on the page that contains the watermark image. I tried both providing the full URL and just the actual name of the image.
We are on an older Confluence version. Is this macro compatible with 3.5 and on the documentation theme?
Thanks.
-p
Charles, I know this macro was written some years ago, but we are setting up an enterprise intranet using confluence and we have installed your watermark macros with Confluence 6.8.1 to provide the ability for users to create pages with a watermark or background image.
We have just had the solution pen tested and the report advises that there is a potential vulnerbility with your macro:
This macro passed the imgsrc parameter unsanitised to the code, so the jQuery function could be broken out of and closed, and malicious JavaScript executed afterwards. In order to do this, the value had to start with http or else it would be manipulated by the pre-processor.The consultants were able to use this macro with the following payload and get JavaScript execution.
http://')} </script><script>alert("ptp xss")</script>
Is there anyway you could possibly update your macro to remove this vulnerability?
@CharlesH1 @[deleted]
Thanks for this macro - works like a charm.
Is it possible to incorporate the ability for the macro to appear when the content is exported (Word/PDF)? Currently it does not.
Regards
Rethabile M
It looks like you're new here. Sign in or register to get started.