Skip to content

url重定向漏洞 #125

@netxfly

Description

@netxfly

测试代码:

package main

import (
	"gopkg.in/macaron.v1"
)

func main() {
	m := macaron.Classic()
	m.Use(macaron.Renderer())

	m.Get("/", LoginIndex)
	m.Run()
}

func LoginIndex(ctx *macaron.Context) {
	ctx.Write([]byte("fdasfas"))

}

构造以下的请求会跳转到指向的URL,可以用来做钓鱼攻击(FireFox和Safari上有效,chrome没成功)。
curl -v http://127.0.0.1:4000//www.baidu.com/%2e%2e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions