Giter Club home page Giter Club logo

Comments (10)

evilscheme avatar evilscheme commented on August 15, 2024

Here's another one that thug doesn't follow.. These are both from live exploit kits so this is far from theoretical ;)

<script type="text/javascript">parent.location.href = "http://worldcruiseholiday.[IPUTTHISHERETODEFANGTHEURL]co.th/wind.html";</script>

from thug.

evilscheme avatar evilscheme commented on August 15, 2024

That last one may be due to the fact that there is no content-type being returned:

        "content-type": "",

Maybe that is what is fooling thug?

from thug.

buffer avatar buffer commented on August 15, 2024

Could you please confirm the issues are fixed?

from thug.

evilscheme avatar evilscheme commented on August 15, 2024

The 2nd issue still seems to be unresolved. The following link was not followed:

HTTP/1.1 200
Server: Apache
Content-Length: 176
Content-Type:
Last-Modified: Ïò, 29 ìàð 2013 15:25:23 GMT
Accept-Ranges: bytes
Server: nginx/1.2.6
Date: Fri, 29 Mar 2013 15:25:23 GMT
X-Powered-By: PHP/5.4.11

<script type="text/javascript">parent.location.href = "http://www.apprendimentopermanentescalea.it/happily.html";</script>

from thug.

evilscheme avatar evilscheme commented on August 15, 2024

first issue does appear to be resolved, thanks

from thug.

buffer avatar buffer commented on August 15, 2024

This sounds quite strange me. Are you seeing a real browser following the redirection? Didn't know location.href could be set to an anchor...

from thug.

evilscheme avatar evilscheme commented on August 15, 2024

I haven't been able to confirm with a real browser, so who knows.. this is part of a TDS in front of a mix of pharma spam and SweetOrange EKs though so... there's definitely malicious content on the other side of those links sometimes.

Here are some sample URLs to play with (potentially malicious so be careful of course):

hXXp://buggy-center.by/respect.html
hXXp://sajidmerchant.com/ordinary.html
hXXp://www.dieswaene.com/completely.html
hXXp://triconcompany.com/even.html

from thug.

buffer avatar buffer commented on August 15, 2024

I'm going to commit a patch which should solve all the cases. Could you please confirm it works for you too?

from thug.

evilscheme avatar evilscheme commented on August 15, 2024

this page was still treated as a dead-end: <!DOCTYPE HTML><html><head><script type="text/javascript">parent.location.href = "http://sotimex.com/leaf.html";</script></head><body></body></html>

from thug.

buffer avatar buffer commented on August 15, 2024

Seems like it works properly here

buffer@saiph ~/thug/src $ python thug.py -l testLocation.html
[2013-04-12 09:54:32] [HREF Redirection (document.location)] Content-Location: about:blank --> Location: http://sotimex.com/leaf.html
[2013-04-12 09:54:32] [window open redirection] about:blank -> http://sotimex.com/leaf.html
[2013-04-12 09:54:45] [HTTP] URL: http://sotimex.com/leaf.html (Status: 400, Referrer: None)
[2013-04-12 09:54:45] Saving log analysis at ../logs/6ec5279d4bbb1e36d39d31a7aee1b18b/20130412095430

from thug.

Related Issues (20)

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.