GithubHelp home page GithubHelp logo

cve-2017-5638_struts's People

Contributors

lblsecurity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cve-2017-5638_struts's Issues

possible issues

Should the initial handler for the event http_header raise a Struts::struts_new event?

'victim' is set to the attacking ip:

struts_attack[domain]$victim= c$id$orig_h ; 

But then is overwritten with the client ip later:

if (struts_attack[domain]?$victim)
    struts_attack[domain]$victim= c$id$orig_h;

if (c$id$orig_h == struts_attack[domain]$victim)

I don't think that breaks anything but it appears that if statement is always true and that every Struts::MalwareURLClick will have a Struts::Compromise.

I think this section:

if (domain !in struts_attack)
{
    local rec: struts_MO;

    struts_attack[domain] = rec;
    struts_attack[domain]$web_host = domain;

    struts_attack[domain]$culprit_conn= set();
    add struts_attack[domain]$culprit_conn[c$id];

    struts_attack[domain]$mal_ips= set();
    add struts_attack[domain]$mal_ips[c$id$orig_h];
    add struts_attack[domain]$mal_ips[to_addr(domain)];
    struts_attack[domain]$victim= c$id$orig_h ;
}

should be

if (domain !in struts_attack)
{
    local rec: struts_MO;
    rec$culprit_conn = set();
    rec$mal_ips=set();
    struts_attack[domain] = rec;
}
struts_attack[domain]$web_host = domain;
add struts_attack[domain]$culprit_conn[c$id];
add struts_attack[domain]$mal_ips[c$id$orig_h];
add struts_attack[domain]$mal_ips[to_addr(domain)];
struts_attack[domain]$victim= c$id$resp_h ;
}

otherwise you're only tracking the first orig_h that uses a particular domain... Though it looks like mal_ips may be used to store both the attacking ips and the ips hosting the download.. so not sure.

Errors in reporter.log

Reporter::ERROR orphan field "do_notice" in initialization ([source=Struts_Script, do_notice=T])

I corrected this for my install by adding:
@load policy/frameworks/intel/do_notice

The next might not be related to the Struts script, but seemed to crop up after loading do_notice:
Reporter::ERROR no such index (Cluster::nodes[Intel::p$descr]) /bro/share/bro/base/frameworks/intel/./cluster.bro, line 35

I correct this for my install by adding:
@load policy/frameworks/intel/seen

Also seeing a couple other errors, which I haven't corrected for my install yet:

Reporter::ERROR no such index (Struts::parts[2]) /bro/spool/installed-scripts-do-not-touch/site/CVE-2017-5638_struts-cluster.bro, line 97

Reporter::WARNING non-void function returns without a value: Struts::extract_host (empty)

Reporter::ERROR Bad IP address: aaa.linuxa.club (empty)

The last type of error seems to crop up repeatedly with some of the domains seen in the Struts attempts. The example domain does return an IP for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.