mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
12 lines
254 B
C#
12 lines
254 B
C#
using System.Web.Script.Serialization;
|
|
|
|
class Bad
|
|
{
|
|
public static object Deserialize(string s)
|
|
{
|
|
JavaScriptSerializer sr = new JavaScriptSerializer(new SimpleTypeResolver());
|
|
// BAD
|
|
return sr.DeserializeObject(s);
|
|
}
|
|
}
|