All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.liveSense.service.xssRemove.XSSRemoveImpl.class Maven / Gradle / Ivy

The newest version!
????2G-org/liveSense/service/xssRemove/XSSRemoveImpljava/lang/Object)org/liveSense/service/xssRemove/XSSRemoveXSSRemoveImpl.java,Lorg/apache/felix/scr/annotations/Component;metatype	immediate-Lorg/apache/felix/scr/annotations/Properties;value+Lorg/apache/felix/scr/annotations/Property;label%contentPathes.namedescription%contentPathes.descriptionname
contentPathes%supportedMimeTypes.name%supportedMimeTypes.descriptionsupportedMimeTypes%elementRemovalList.name%elementRemovalList.descriptionelementRemovalList%attributeNameRemovalList.name%%attributeNameRemovalList.descriptionattributeNameRemovalList%attributeNameStartList.name#%attributeNameStartList.descriptionattributeNameStartList!%attributeTypeValueStartList.nameattributeTypeValueStartList%attributeSrcHrefList.name!%attributeSrcHrefList.descriptionattributeSrcHrefList%elementReplacementList.name#%elementReplacementList.descriptionelementReplacementList%styleContentList.name%styleContentList.descriptionstyleContentListlogLorg/slf4j/Logger;observationManager*Ljavax/jcr/observation/ObservationManager;
repository*Lorg/apache/sling/jcr/api/SlingRepository;,Lorg/apache/felix/scr/annotations/Reference;configurator!Lorg/liveSense/core/Configurator;PARAM_CONTENT_PATHESLjava/lang/String;DEFAULT_CONTENT_PATHES[Ljava/lang/String;PARAM_SUPPORTED_MIME_TYPESDEFAULT_SUPPORTED_MIME_TYPESPARAM_ELEMENT_REMOVAL_LISTDEFAULT_ELEMENT_REMOVAL_LIST!PARAM_ATTRIBUTE_NAME_REMOVAL_LIST#DEFAULT_ATTRIBUTE_NAME_REMOVAL_LISTPARAM_ATTRIBUTE_NAME_START_LIST !DEFAULT_ATTRIBUTE_NAME_START_LIST%PARAM_ATTRIBUTE_TYPE_VALUE_START_LIST"'DEFAULT_ATTRIBUTE_TYPE_VALUE_START_LISTPARAM_ATTRIBUTE_SRC_HREF_LIST%DEFAULT_ATTRIBUTE_SRC_HREF_LISTPARAM_ELEMENT_REPLACEMENT_LIST( DEFAULT_ELEMENT_REPLACEMENT_LISTPARAM_STYLE_CONTENT_LIST+DEFAULT_STYLE_CONTENT_LISTsessionLjavax/jcr/Session;eventListenersLjava/util/ArrayList;OLjava/util/ArrayList;parser+Lorg/liveSense/service/xssRemove/XSSParser;()VYZ
[89	]9	_<9	a9	c?9	e9	gB9	i9	kE9	m 9	oH9	q"9	sK9	u%9	wN9	y(9	{Q9	}+9	java/util/ArrayList?
?[TU	?this/Lorg/liveSense/service/xssRemove/XSSRemoveImpl;activate0(Lorg/osgi/service/component/ComponentContext;)Vjavax/jcr/RepositoryException?%org/xml/sax/SAXNotRecognizedException?$org/xml/sax/SAXNotSupportedException?+org/osgi/service/component/ComponentContext?
getProperties()Ljava/util/Dictionary;????java/util/Dictionary?get&(Ljava/lang/Object;)Ljava/lang/Object;??
??&org/apache/sling/commons/osgi/OsgiUtil?
toStringArray:(Ljava/lang/Object;[Ljava/lang/String;)[Ljava/lang/String;??
??9java/lang/String?equals(Ljava/lang/Object;)Z??
??java/lang/StringBuffer?
?[, ?append,(Ljava/lang/String;)Ljava/lang/StringBuffer;??
??toString()Ljava/lang/String;??
??,-	?(Setting new contentPathes: {}) (was: {})?
??org/slf4j/Logger?info9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V????-Setting new elementRemovalList: {}) (was: {})?3Setting new attributeNameRemovalList: {}) (was: {})?1Setting new attributeNameStartList: {}) (was: {})?6Setting new attributeTypeValueStartList: {}) (was: {})?/Setting new attributeSrcHrefList: {}) (was: {})?1Setting new elementReplacementList: {}) (was: {})?+Setting new styleContentList: {}) (was: {})?)org/liveSense/service/xssRemove/XSSParser??([Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)VY?
??WX	?Parser init error: ?error*(Ljava/lang/String;Ljava/lang/Throwable;)V????01	?(org/apache/sling/jcr/api/SlingRepository?loginAdministrative'(Ljava/lang/String;)Ljavax/jcr/Session;????RS	?option.observation.supported?
getDescriptor&(Ljava/lang/String;)Ljava/lang/String;????true?javax/jcr/Session?getWorkspace()Ljavax/jcr/Workspace;????javax/jcr/Workspace?getObservationManager,()Ljavax/jcr/observation/ObservationManager;????./	?nt:resource?6org/liveSense/service/xssRemove/XSSRemoveEventListener?.(Lorg/liveSense/service/xssRemove/XSSRemove;)VY
?(javax/jcr/observation/ObservationManageraddEventListenerc(Ljavax/jcr/observation/EventListener;ILjava/lang/String;Z[Ljava/lang/String;[Ljava/lang/String;Z)Vadd	?
?
nt:fileiIcontentPathesValueListLjava/lang/StringBuffer;contentPathesNewValueListelementRemovalListValueListelementRemovalListNewValueList!attributeNameRemovalListValueList$attributeNameRemovalListNewValueListattributeNameStartListValueList"attributeNameStartListNewValueList$attributeTypeValueStartListValueList'attributeTypeValueStartListNewValueListattributeSrcHrefListValueList attributeSrcHrefListNewValueListelementReplacementListValueList"elementReplacementListNewValueListstyleContentListValueListstyleContentListNewValueListex'Lorg/xml/sax/SAXNotRecognizedException;&Lorg/xml/sax/SAXNotSupportedException;propTypelistener8Lorg/liveSense/service/xssRemove/XSSRemoveEventListener;fileTypecomponentContext-Lorg/osgi/service/component/ComponentContext;propsLjava/util/Dictionary<**>;Ljava/util/Dictionary;contentPathesNewcontentPathesChangedZelementRemovalListNewelementRemovalListChangedattributeNameRemovalListNewattributeNameRemovalListChangedattributeNameStartListNewattributeNameStartListChangedattributeTypeValueStartListNew"attributeTypeValueStartListChangedattributeSrcHrefListNewattributeSrcHrefListChangedelementReplacementListNewelementReplacementListChangedstyleContentListNewstyleContentListChanged
deactivateiterator()Ljava/util/Iterator;?@
?Ajava/util/IteratorChasNext()ZEFDGnext()Ljava/lang/Object;IJDKremoveEventListener((Ljavax/jcr/observation/EventListener;)VMNOisLiveQF?RlogoutTZ?Ui$Ljava/util/Iterator;isValidMimeType(Ljavax/jcr/Node;)Zjcr:content[javax/jcr/Node]getNode$(Ljava/lang/String;)Ljavax/jcr/Node;_`^ajcr:mimeTypechasProperty(Ljava/lang/String;)Zef^ggetProperty((Ljava/lang/String;)Ljavax/jcr/Property;ij^kjavax/jcr/Propertym	getStringo?npactMimeTypemimeTypenodeLjavax/jcr/Node;removeXSSsecurityVulnerability'(Ljava/lang/String;Ljava/lang/String;)Vjava/lang/ExceptionxgetRootNode()Ljavax/jcr/Node;z{?|java/lang/StringBuilder~
[-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?/?
?YZ
?,Removing XSS Vulnerability codes for node {}?getPath??^?'(Ljava/lang/String;Ljava/lang/Object;)V????java/io/StringWriter?
?[ org/ccil/cowan/tagsoup/XMLWriter?(Ljava/io/Writer;)VY?
??omit-xml-declaration?yes?setOutputProperty?w
??encoding?34	?org/liveSense/core/Configurator?getEncoding????setContentHandler(Lorg/xml/sax/ContentHandler;)V??
??org/xml/sax/InputSource?java/io/InputStreamReader?jcr:data?	getStream()Ljava/io/InputStream;??n?*(Ljava/io/InputStream;Ljava/lang/String;)VY?
??(Ljava/io/Reader;)VY?
??parse(Lorg/xml/sax/InputSource;)V??
??java/io/ByteArrayInputStream?
??getBytes(Ljava/lang/String;)[B??
??([B)VY?
??setProperty=(Ljava/lang/String;Ljava/io/InputStream;)Ljavax/jcr/Property;??^?1No XSS  Vulnerability remove, not a HTML: {} - {}?save?Z??swLjava/io/StringWriter;	xmlWriter"Lorg/ccil/cowan/tagsoup/XMLWriter;parentFolderfileNameorg/slf4j/LoggerFactory?	getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;??
??/sites?/users?	text/html?script?applet?embed?xml?bgsound?meta?link?style?base?onload?onclick?onchange?onsubmit?onmouseoveronerrordynsrcdatasrcdatafld	dataformatason
text/javascriptjavascript:-^\s*j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t\s*:.^\s*v\s*i\s*e\s*w\s*-s\s*o\s*u\s*r\s*c\s*e\s*:^\s*d\s*a\s*t\s*a\s*:%^\s*v\s*b\s*s\s*s\s*r\s*i\s*p\s*t\s*:^\s*a\s*b\s*o\s*u\s*t\s*:^\s*s\s*h\s*e\s*e\s*l\s*:html/divhead/div!body/div#
iframe/div%	frame/div'frameset/div)	layer/div+
ilayer/div-
blink/span/
object/div1
javascript3
expression5bindRepository-(Lorg/apache/sling/jcr/api/SlingRepository;)VunbindRepositorybindConfigurator$(Lorg/liveSense/core/Configurator;)VunbindConfiguratorRuntimeInvisibleAnnotations
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable
Exceptions
SourceFile!",-./01=234=256>7899:6>;<99=6>>?99@6>AB99C6>DE9 9F6>GH9"9I6>JK9%9L6>MN9(9O6>PQ9+9RSTU?VWX
YZ@?O*?\*?^?`*?b?d*?f?h*?j?l*?n?p*?r?t*?v?x*?z?|*?~??*??Y?????AO??B.FTX\` d'h.s5w<{C???@+
?+??M+??7???^??N6-?*?`??	6??6-??-2*?`2???6????????Y??:??Y??:6-??#????W-2????W????6*?`??&????W*?`2????W???ֲ????????*-?`+??>???f??:6?*?h??	6??6??2*?h2???6????????Y??:??Y??:6		??$	????W	2????W?	???6		*?h??&	????W*?h	2????W?	??ֲ????????*?h+??A???j??:6?*?l??	6??6		??	2*?l	2???6?	???????Y??:	??Y??:
6??$?
???W
2????W????6*?l??&?	???W	*?l2????W???ֲ??
??	????*?l+??D???n??:	6
	?*?p??	6
??6	??	2*?p2???6
????
????Y??:??Y??:6

	??$
????W	
2????W?
???6

*?p??&
????W*?p
2????W?
??ֲ????????*	?p+??G???r??:6?*?t??	6??6

??
2*?t
2???6?
???????Y??:
??Y??:6??$????W2????W????6*?t??&?
???W
*?t2????W???ֲ????
????*?t+??J???v??:
6
?*?x??	6??6
??
2*?x2???6????????Y??:??Y??:6
??$????W
2????W????6*?x??&????W*?x2????W???ֲ????????*
?x+??M???z??:6?*?|??	6??6??2*?|2???6????????Y??:??Y??:6??$????W2????W????6*?|??&????W*?|2????W???ֲ????????*?|+??P???~??:6?*????	6??6??2*??2???6????????Y??:??Y??:6??$????W2????W????6*????&????W*??2????W???ֲ????????*??*??Y*?h*?l*?p*?t*?x*?|*???ӵէ":??????:?????**??????*?????????**???????6*?`??y??Y?S:??Y*?:*??*?`2?*???W??Y
S:??Y*?:*??*?`2?*???W????????????A?A/!j'?-^|gs#A)	m-	5>v?#	)G-	v
?#?)
!-
??v?#
?)?-?
?vl#?)?-??vF#?)?-w?v #])?-QZv ?!"
!#de$9n[%&?,'9O?????()?*,?-9?./??09??1/?	29?3/?/49	?,5/
{U69~R7/U{89
Xx9//?:92?;/	?<9?=/C?*+B:?????&?,?6?G?J?P?U?^?g?q?v?~????????????????????????????!?'?,?5?>?I?N?V?d?j?w?|?????????????????????????????#?(?0?>?D?Q?V?^?n?t???????????????????????????
+0	8HN
bh{~???????? ?"?#?$?&?"?)*
+-")(/<0B6U7X8c9i;t<?=?;?@?A?B?D?E?F?H?D?K?L?M?O?KQRX/Y2Z=[C]N^`_c]ibncwd?f?g?h?j?f?m?n?o?q?m?s?t?{	|}~?(?:?=?C?H?Q?Z?e?j?r???????????????????????????
??'?:?L?Y?d?n???????????????DU]?,????????????&???????????&???????????&???????????&???????????&???????????&???????????&??????????i?P?
?5?E?>?@?L*???+*???BM,?H?,?L??N*??-?P???*???*??S?*??V?A*"
%& WXL??L()B??"?,?/?B?K?D?D?E?YZ@?V+\?bd?h?A+\?bd?l?qM>*?d??*?d2:,??????????A4>r6-"+$s6V??VtuB*
??+?6?>?G?I?O?R?T?D?-??E?vw@? *??S?**??????*??}?Y??+?????,?????bN*-???????-??????Y??:??Y??:?????*??????*????*?ջ?Y??Y-\?b??l??*??????????-\?b???Y??*?????Ƿʹ?W?%???-??-\?bd?l??*????A>c???n??? ?? ?6 ?6A?tuB>??A?I?Z?c?n?y?????????????D
??^!E?y?Z@?Z?????Y?SY?S?^??Y?S?b	??Y?SY?SY?SY?SY?SY?SY?SY?SY?S?f
??Y?SY?SY?SYSYSYSYSYSY
SY	S?j??YS?n??YS?r??YSYSYSYSYSYSYS?v
??Y SY"SY$SY&SY(SY*SY,SY.SY0SY	2S?z??Y4SY6S?~?B*
HSW([i_?c?g?k?vFz78@*+?ݱ98@*??+?*?ݱ:;@*+???<;@*??+?*???F=?	Z
Z

[	@sss@sss@sss@sss@sss @s!ss"@s#s$s%@s&s's(@s)s*s+




© 2015 - 2024 Weber Informatics LLC | Privacy Policy