Skip to content

Commit 4dde1a3

Browse files
tyageZogoo
andauthored
Fix CSRF token leakage in SAML POST binding template (#241)
Co-authored-by: zogoo <chtsogbadrakh@gmail.com>
1 parent ed7e2d2 commit 4dde1a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rails_app/app/views/saml_idp/idp/saml_post.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
66
</head>
77
<body onload="document.forms[0].submit();" style="visibility:hidden;">
8-
<%= form_tag(saml_acs_url) do %>
8+
<form action="<%= saml_acs_url %>" method="post">
99
<%= hidden_field_tag("SAMLResponse", @saml_response) %>
1010
<%= hidden_field_tag("RelayState", params[:RelayState]) %>
1111
<%= submit_tag "Submit" %>
12-
<% end %>
12+
</form>
1313
</body>
1414
</html>

0 commit comments

Comments
 (0)