Code Monkey home page Code Monkey logo

csrf's Introduction

CSRF

Bypass CSRF-XMLRequestWith

  • 前提条件

1)可利用swf未校验referer和origin 的bypass 含json xml格式的数据,

2)可使用swf添加X-Request-With

crossdomain XML文件:

<cross-domain-policy>
<allow-access-from domain="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>

这个文件应该放在攻击者网站的根目录下,这样Flash文件就可以向攻击者的主机发送请求。

注意:如果Flash文件&重定向器页面在同一个域,则不需要crossdomain文件。

POC包含:

  1. 精心制作的Flash文件
  2. 跨域XML文件
  3. 带有307个状态的PHP文件
  4. 精心制作的flash文件

PS:ffdec_11.2.0_nightly1721_setup为swf编辑软件

参考:https://hackerone.com/reports/44146

测试环境

img

img2

csrf's People

Contributors

qclover avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.