├── .idea
├── .gitignore
├── libraries
│ ├── AgentRepair.xml
│ ├── FastInfoset.xml
│ ├── activation.xml
│ ├── axis_1_4.xml
│ ├── com_azalea_ufl_barcode_1_0.xml
│ └── hpsim_util_web.xml
├── misc.xml
└── modules.xml
├── ProjectSIM.iml
├── README.md
├── emp.ser
├── out
└── production
│ └── ProjectSIM
│ ├── Strings$ToStringComparator.class
│ ├── Strings.class
│ ├── Test0.class
│ └── Test1.class
└── src
├── Strings.java
├── Test0.java
└── Test1.java
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Datasource local storage ignored files
5 | /../../../../../:\Research2020\hpe-sim\ProjectSIM\.idea/dataSources/
6 | /dataSources.local.xml
7 | # Editor-based HTTP Client requests
8 | /httpRequests/
9 |
--------------------------------------------------------------------------------
/.idea/libraries/AgentRepair.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
--------------------------------------------------------------------------------
/.idea/libraries/FastInfoset.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/.idea/libraries/activation.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/.idea/libraries/axis_1_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/.idea/libraries/com_azalea_ufl_barcode_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/.idea/libraries/hpsim_util_web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ProjectSIM.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ProjectSIM
2 | HPE Systems Insight Manager (SIM) AMF Deserialization to RCE
3 |
4 | CVE-2020-7200
5 |
6 | This PoC is built by jang
7 |
8 | Thanks to @peterjson
9 |
--------------------------------------------------------------------------------
/emp.ser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/testanull/ProjectSIM/ec0028d8e1f6b67b5d2688151c5df015fcd86a38/emp.ser
--------------------------------------------------------------------------------
/out/production/ProjectSIM/Strings$ToStringComparator.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/testanull/ProjectSIM/ec0028d8e1f6b67b5d2688151c5df015fcd86a38/out/production/ProjectSIM/Strings$ToStringComparator.class
--------------------------------------------------------------------------------
/out/production/ProjectSIM/Strings.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/testanull/ProjectSIM/ec0028d8e1f6b67b5d2688151c5df015fcd86a38/out/production/ProjectSIM/Strings.class
--------------------------------------------------------------------------------
/out/production/ProjectSIM/Test0.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/testanull/ProjectSIM/ec0028d8e1f6b67b5d2688151c5df015fcd86a38/out/production/ProjectSIM/Test0.class
--------------------------------------------------------------------------------
/out/production/ProjectSIM/Test1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/testanull/ProjectSIM/ec0028d8e1f6b67b5d2688151c5df015fcd86a38/out/production/ProjectSIM/Test1.class
--------------------------------------------------------------------------------
/src/Strings.java:
--------------------------------------------------------------------------------
1 | import java.util.Arrays;
2 | import java.util.Comparator;
3 | import java.util.LinkedList;
4 | import java.util.List;
5 |
6 | public class Strings {
7 | public static String join(Iterable strings, String sep, String prefix, String suffix) {
8 | final StringBuilder sb = new StringBuilder();
9 | boolean first = true;
10 | for (String s : strings) {
11 | if (! first) sb.append(sep);
12 | if (prefix != null) sb.append(prefix);
13 | sb.append(s);
14 | if (suffix != null) sb.append(suffix);
15 | first = false;
16 | }
17 | return sb.toString();
18 | }
19 |
20 | public static String repeat(String str, int num) {
21 | final String[] strs = new String[num];
22 | Arrays.fill(strs, str);
23 | return join(Arrays.asList(strs), "", "", "");
24 | }
25 |
26 | public static List formatTable(List rows) {
27 | final Integer[] maxLengths = new Integer[rows.get(0).length];
28 | for (String[] row : rows) {
29 | if (maxLengths.length != row.length) throw new IllegalStateException("mismatched columns");
30 | for (int i = 0; i < maxLengths.length; i++) {
31 | if (maxLengths[i] == null || maxLengths[i] < row[i].length()) {
32 | maxLengths[i] = row[i].length();
33 | }
34 | }
35 | }
36 |
37 | final List lines = new LinkedList();
38 | for (String[] row : rows) {
39 | for (int i = 0; i < maxLengths.length; i++) {
40 | final String pad = repeat(" ", maxLengths[i] - row[i].length());
41 | row[i] = row[i] + pad;
42 | }
43 | lines.add(join(Arrays.asList(row), " ", "", ""));
44 | }
45 | return lines;
46 | }
47 |
48 | public static class ToStringComparator implements Comparator