-
Notifications
You must be signed in to change notification settings - Fork 285
Closed
Description
测试代码:
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels