Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
Searching 133 files for "miniOrange WP IDP SSO" 0 matches Searching 133 files for "m..
Decoded Output download
<? Searching 133 files for "miniOrange WP IDP SSO"
0 matches
Searching 133 files for "miniOrange WP IDP SSO"
0 matches
Searching 133 files for "attribute"
\wp-content\plugins\miniorange-wp-saml-idp-premium\actions\SettingsActions.php:
15 use IDP\Exception\RequiredFieldsException;
16 use IDP\Exception\SPNameAlreadyInUseException;
17: use IDP\Handler\AttributeSettingsHandler;
18 use IDP\Handler\CustomLoginURLHandler;
19 use IDP\Handler\RoleBasedSSOHandler;
..
42 $this->idpSettingsHandler = IDPSettingsHandler::instance();
43 $this->feedbackHandler = FeedbackHandler::instance();
44: $this->attrSettingsHandler = AttributeSettingsHandler::instance();
45 $this->metadataReaderHandler = MetadataReaderHandler::instance();
46 $this->roleBasedSSOHandler = RoleBasedSSOHandler::instance();
..
122 goto fw;
123 case $this->funcs[9]:
124: $this->attrSettingsHandler->mo_add_role_attribute($_POST);
125 goto fw;
126 case $this->funcs[10]:
\wp-content\plugins\miniorange-wp-saml-idp-premium\actions\SSOActions.php:
284 fr:
285 }
286: public function modifyUserAttributeDateValue($l7)
287 {
288 $kg = array("d.m.Y", "d/m/Y", "d-m-Y", "Y/m/d", "Y-m-d", "Y.m.d", "m.d.Y", "m-d-Y", "m/d/Y");
\wp-content\plugins\miniorange-wp-saml-idp-premium\exception\MissingWaAttributeException.php:
5
6 use IDP\Helper\Constants\MoIDPMessages;
7: class MissingWaAttributeException extends \Exception
8 {
9 public function __construct()
\wp-content\plugins\miniorange-wp-saml-idp-premium\exception\MissingWtRealmAttributeException.php:
5
6 use IDP\Helper\Constants\MoIDPMessages;
7: class MissingWtRealmAttributeException extends \Exception
8 {
9 public function __construct()
\wp-content\plugins\miniorange-wp-saml-idp-premium\handler\AttributeSettingsHandler.php:
9 use IDP\Helper\Traits\Instance;
10 use IDP\Helper\Utilities\MoIDPUtility;
11: final class AttributeSettingsHandler extends SPSettingsUtility
12 {
13 use Instance;
14: public function mo_add_role_attribute($y8)
15 {
16 global $dbIDPQueries;
..
32 $vF = sanitize_text_field($y8["mo_idp_role_mapping_name"]);
33 Nq:
34: $Ko = $dbIDPQueries->get_sp_role_attribute($x9);
35 if (!isset($Ko)) {
36 goto c2;
..
39 $u0["mo_sp_attr_name"] = "groupMapName";
40 $u0["mo_attr_type"] = 1;
41: $dbIDPQueries->delete_sp_attributes($u0);
42 c2:
43 if (is_null($cK)) {
..
52 $qz["mo_sp_attr_value"] = sanitize_text_field($vF);
53 $qz["mo_attr_type"] = 1;
54: $dbIDPQueries->insert_sp_attributes($qz);
55 $dbIDPQueries->update_sp_data($fL, $kl);
56 iU:
..
68 $cK = isset($y8["mo_idp_attribute_mapping_name"]) ? $y8["mo_idp_attribute_mapping_name"] : '';
69 $vF = isset($y8["mo_idp_attribute_mapping_val"]) ? $y8["mo_idp_attribute_mapping_val"] : '';
70: $Ko = $dbIDPQueries->get_sp_attributes($x9);
71 if (!isset($Ko)) {
72 goto Zl;
..
74 $u0["mo_sp_id"] = $x9;
75 $u0["mo_attr_type"] = 0;
76: $dbIDPQueries->delete_sp_attributes($u0);
77 Zl:
78 if (empty($cK)) {
..
87 $qz["mo_sp_attr_name"] = sanitize_text_field($l7);
88 $qz["mo_sp_attr_value"] = sanitize_text_field($vF[$xO]);
89: $dbIDPQueries->insert_sp_attributes($qz);
90 Br:
91 Q_:
..
111 $u0["mo_sp_id"] = $x9;
112 $u0["mo_attr_type"] = 2;
113: $dbIDPQueries->delete_sp_attributes($u0);
114 F5:
115 if (empty($cK)) {
...
125 $qz["mo_sp_attr_value"] = sanitize_text_field(stripslashes($vF[$xO]));
126 $qz["mo_attr_type"] = 2;
127: $dbIDPQueries->insert_sp_attributes($qz);
128 Im:
129 UN:
\wp-content\plugins\miniorange-wp-saml-idp-premium\handler\SendResponseHandler.php:
97 $di = $dbIDPQueries->get_sp_from_acs($Oy);
98 $e6 = !empty($di) ? $di->id : null;
99: $Ko = $dbIDPQueries->get_all_sp_attributes($e6);
100 return array(MoIDPConstants::SAML_RESPONSE, $Oy, $QB, $vj, $A2, $Ko, $di, $Hi, $FW);
101 }
...
113 $di = $dbIDPQueries->get_sp_from_issuer($Nv);
114 $e6 = !empty($di) ? $di->id : null;
115: $Ko = $dbIDPQueries->get_all_sp_attributes($e6);
116 return array(MoIDPConstants::WS_FED_RESPONSE, $Nv, $QS, $E2, $QB, $di, $Ko, $Hi, $uM);
117 }
...
165 $di = $dbIDPQueries->get_sp_from_acs($c9);
166 $e6 = !empty($di) ? $di->id : null;
167: $Ko = $dbIDPQueries->get_all_sp_attributes($e6);
168 $B5 = $di->mo_idp_nameid_format;
169 return array(MoIDPConstants::JWT_RESPONSE, $c9, $B5, $vs, $di, $Ko, $ga, NULL, NULL);
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\common\XMLSecEnc.php:
44 $xL = XMLSecurityDSig::generateGUID();
45 $sU = $DI->documentElement;
46: $sU->setAttribute("Id", $xL);
47 $this->references[$Pk] = array("node" => $D_, "type" => $ZV, "encnode" => $DI, "refuri" => $xL);
48 }
..
76 case self::Element:
77 $fL = $oy->saveXML($this->rawNode);
78: $this->encdoc->documentElement->setAttribute("Type", self::Element);
79 goto CI;
80 case self::Content:
..
85 }
86 mj:
87: $this->encdoc->documentElement->setAttribute("Type", self::Content);
88 goto CI;
89 default:
..
93 CI:
94 $eI = $this->encdoc->documentElement->appendChild($this->encdoc->createElementNS(self::XMLENCNS, "xenc:EncryptionMethod"));
95: $eI->setAttribute("Algorithm", $td->getAlgorithm());
96 $jn->parentNode->parentNode->insertBefore($eI, $jn->parentNode->parentNode->firstChild);
97 $ha = base64_encode($td->encryptData($fL));
..
247 gv:
248 $eI = $DS->appendChild($this->encdoc->createElementNS(self::XMLENCNS, "xenc:EncryptionMethod"));
249: $eI->setAttribute("Algorithm", $ms->getAlgorith());
250 if (empty($ms->name)) {
251 goto qV;
...
263 $xL = $ln["refuri"];
264 $uq = $Yv->appendChild($this->encdoc->createElementNS(self::XMLENCNS, "xenc:DataReference"));
265: $uq->setAttribute("URI", "#" . $xL);
266 Rb:
267 }
...
326 goto b6;
327 }
328: $ma = $p1->getAttribute("Algorithm");
329 try {
330 $td = new XMLSecurityKey($ma, array("type" => "private"));
...
404 goto iA;
405 case "RetrievalMethod":
406: $ZV = $Ag->getAttribute("Type");
407 if (!($ZV !== "http://www.w3.org/2001/04/xmlenc#EncryptedKey")) {
408 goto ai;
...
410 goto iA;
411 ai:
412: $V7 = $Ag->getAttribute("URI");
413 if (!($V7[0] !== "#")) {
414 goto gy;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\common\XMLSecurityDSig.php:
145 $GS->insertBefore($GZ, $GS->firstChild);
146 GU:
147: $GZ->setAttribute("Algorithm", $this->canonicalMethod);
148 VN:
149 db:
...
219 goto Kz;
220 }
221: $g4 = $GZ->getAttribute("Algorithm");
222 foreach ($GZ->childNodes as $D_) {
223 if (!($D_->localName == "InclusiveNamespaces")) {
224 goto MT;
225 }
226: if (!($si = $D_->getAttribute("PrefixList"))) {
227 goto fV;
228 }
...
298 $ru = null;
299 foreach ($I6 as $M9) {
300: $ib = $M9->getAttribute("Algorithm");
301 switch ($ib) {
302 case "http://www.w3.org/2001/10/xml-exc-c14n#":
...
318 goto wp;
319 }
320: if (!($si = $D_->getAttribute("PrefixList"))) {
321 goto Sr;
322 }
...
401 $MY = null;
402 $zT = true;
403: if ($V7 = $C5->getAttribute("URI")) {
404 goto rA;
405 }
...
466 public function getRefNodeID($C5)
467 {
468: if (!($V7 = $C5->getAttribute("URI"))) {
469 goto AF;
470 }
...
569 goto Bu;
570 }
571: $V7 = $IJ ? $D_->getAttributeNS($IJ, $zP) : $D_->getAttribute($zP);
572 Bu:
573 if (!empty($V7)) {
...
575 }
576 $V7 = self::generateGUID();
577: $D_->setAttributeNS($IJ, $Pa, $V7);
578 UG:
579: $C5->setAttribute("URI", "#" . $V7);
580 goto ix;
581 Uu:
582: $C5->setAttribute("URI", '');
583 ix:
584 $yf = $this->createNewSignNode("Transforms");
...
598 goto BG;
599 }
600: $r0->setAttribute("Algorithm", $M9);
601 goto gq;
602 BG:
603: $r0->setAttribute("Algorithm", "http://www.w3.org/TR/1999/REC-xpath-19991116");
604 $MK = $this->createNewSignNode("XPath", $M9["http://www.w3.org/TR/1999/REC-xpath-19991116"]["query"]);
605 $r0->appendChild($MK);
...
608 }
609 foreach ($M9["http://www.w3.org/TR/1999/REC-xpath-19991116"]["namespaces"] as $Pf => $q1) {
610: $MK->setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:{$Pf}", $q1);
611 V4:
612 }
...
621 $r0 = $this->createNewSignNode("Transform");
622 $yf->appendChild($r0);
623: $r0->setAttribute("Algorithm", $this->canonicalMethod);
624 hp:
625 $ZO = $this->processTransforms($C5, $D_);
...
627 $j9 = $this->createNewSignNode("DigestMethod");
628 $C5->appendChild($j9);
629: $j9->setAttribute("Algorithm", $ib);
630 $PR = $this->createNewSignNode("DigestValue", $Bl);
631 $C5->appendChild($PR);
...
670 goto Xv;
671 }
672: $FU->setAttribute("MimeType", $nf);
673 Xv:
674 if (empty($w0)) {
675 goto zZ;
676 }
677: $FU->setAttribute("Encoding", $w0);
678 zZ:
679 if ($fL instanceof DOMElement) {
...
758 $ET = $wC->query($lB, $hJ);
759 $wq = $ET->item(0);
760: $wq->setAttribute("Algorithm", $td->type);
761 $fL = $this->canonicalizeData($hJ, $this->canonicalMethod);
762 $n2 = base64_encode($this->signData($td, $fL));
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\database\MoDbQueries.php:
156 return $wpdb->get_var($Qf);
157 }
158: function get_sp_attributes($e6)
159 {
160 global $wpdb;
161 return $wpdb->get_results("SELECT * FROM " . $this->spAttrTableName . " WHERE mo_sp_id = {$e6} AND mo_sp_attr_name <> 'groupMapName' AND mo_attr_type = 0");
162 }
163: function get_sp_role_attribute($e6)
164 {
165 global $wpdb;
166 return $wpdb->get_row("SELECT * FROM " . $this->spAttrTableName . " WHERE mo_sp_id = {$e6} AND mo_sp_attr_name = 'groupMapName'");
167 }
168: function get_all_sp_attributes($e6)
169 {
170 global $wpdb;
...
199 {
200 global $wpdb;
201: $this->delete_sp_attributes($v0);
202 $wpdb->delete($this->spDataTableName, $RV, $rD = null);
203 }
204: function delete_sp_attributes($u0)
205 {
206 global $wpdb;
207 $wpdb->delete($this->spAttrTableName, $u0, $rD = null);
208 }
209: function insert_sp_attributes($qz)
210 {
211 global $wpdb;
...
227 return $wpdb->get_results("SELECT mo_idp_protocol_type FROM " . $this->spDataTableName);
228 }
229: function getDistinctMetaAttributes()
230 {
231 global $wpdb;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\jwt\GenerateJwtToken.php:
68 $YK = [];
69 foreach ($this->sp_attr as $Hw) {
70: $YK = array_merge($YK, $this->buildAttribute($et, $Hw->mo_sp_attr_name, $Hw->mo_sp_attr_value, $Hw->mo_attr_type));
71 rp:
72 }
..
80 return \json_encode($Ep);
81 }
82: function buildAttribute($et, $wf, $wm, $ZV)
83 {
84 if ($wf === "groupMapName") {
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\AuthnRequest.php:
40 $this->forceAuthn = SAMLUtilities::parseBoolean($eL, "ForceAuthn", false);
41 $this->isPassive = SAMLUtilities::parseBoolean($eL, "IsPassive", false);
42: if (!$eL->hasAttribute("AssertionConsumerServiceURL")) {
43 goto ch;
44 }
45: $this->assertionConsumerServiceURL = $eL->getAttribute("AssertionConsumerServiceURL");
46 ch:
47: if (!$eL->hasAttribute("ProtocolBinding")) {
48 goto Ko;
49 }
50: $this->protocolBinding = $eL->getAttribute("ProtocolBinding");
51 Ko:
52: if (!$eL->hasAttribute("AttributeConsumingServiceIndex")) {
53 goto ws;
54 }
55: $this->attributeConsumingServiceIndex = (int) $eL->getAttribute("AttributeConsumingServiceIndex");
56 ws:
57: if (!$eL->hasAttribute("AssertionConsumerServiceIndex")) {
58 goto rc;
59 }
60: $this->assertionConsumerServiceIndex = (int) $eL->getAttribute("AssertionConsumerServiceIndex");
61 rc:
62: if (!$eL->hasAttribute("Destination")) {
63 goto Lr;
64 }
65: $this->destination = $eL->getAttribute("Destination");
66 Lr:
67 if (!isset($eL->namespaceURI)) {
..
70 $this->namespaceURI = $eL->namespaceURI;
71 FJ:
72: if (!$eL->hasAttribute("Version")) {
73 goto ow;
74 }
75: $this->version = $eL->getAttribute("Version");
76 ow:
77: if (!$eL->hasAttribute("IssueInstant")) {
78 goto BR;
79 }
80: $this->issueInstant = $eL->getAttribute("IssueInstant");
81 BR:
82: if (!$eL->hasAttribute("ID")) {
83 goto sT;
84 }
85: $this->requestID = $eL->getAttribute("ID");
86 sT:
87 $this->checkAuthnRequestIssueInstant();
..
111 Ug:
112 $iD = $iD[0];
113: if (!$iD->hasAttribute("Format")) {
114 goto Pf;
115 }
116: $this->nameIdPolicy["Format"] = $iD->getAttribute("Format");
117 Pf:
118: if (!$iD->hasAttribute("SPNameQualifier")) {
119 goto LC;
120 }
121: $this->nameIdPolicy["SPNameQualifier"] = $iD->getAttribute("SPNameQualifier");
122 LC:
123: if (!$iD->hasAttribute("AllowCreate")) {
124 goto gS;
125 }
...
143 }
144 xn:
145: if (!$zC->hasAttribute("Comparison")) {
146 goto PQ;
147 }
148: $Pl["Comparison"] = $zC->getAttribute("Comparison");
149 PQ:
150 $this->requestedAuthnContext = $Pl;
...
159 Uc:
160 $Ak = $Ak[0];
161: if (!$Ak->hasAttribute("ProxyCount")) {
162 goto ew;
163 }
164: $this->ProxyCount = (int) $Ak->getAttribute("ProxyCount");
165 ew:
166 $zN = SAMLUtilities::xpQuery($Ak, "./saml_protocol:IDPList/saml_protocol:IDPEntry");
167 foreach ($zN as $li) {
168: if ($li->hasAttribute("ProviderID")) {
169 goto cY;
170 }
171 throw new \Exception("Could not get ProviderID from Scoping/IDPEntry element in AuthnRequest object");
172 cY:
173: $this->IDPList[] = $li->getAttribute("ProviderID");
174 zq:
175 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\GenerateLogoutResponse.php:
36 {
37 $Fg = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:protocol", "samlp:LogoutResponse");
38: $Fg->setAttribute("ID", $this->generateUniqueID(40));
39: $Fg->setAttribute("Version", "2.0");
40: $Fg->setAttribute("IssueInstant", str_replace("+00:00", "Z", gmdate("c", time())));
41: $Fg->setAttribute("Destination", $this->destination);
42: $Fg->setAttribute("InResponseTo", $this->inResponseTo);
43 return $Fg;
44 }
..
56 {
57 $mb = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:protocol", "samlp:StatusCode");
58: $mb->setAttribute("Value", "urn:oasis:names:tc:SAML:2.0:status:Success");
59 return $mb;
60 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\GenerateResponse.php:
112 {
113 $Fg = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:protocol", "samlp:Response");
114: $Fg->setAttribute("ID", $et["ID"]);
115: $Fg->setAttribute("Version", "2.0");
116: $Fg->setAttribute("IssueInstant", $et["IssueInstant"]);
117: $Fg->setAttribute("Destination", $this->acsUrl);
118 if (is_null($this->requestID)) {
119 goto KW;
120 }
121: $Fg->setAttribute("InResponseTo", $this->requestID);
122 KW:
123 return $Fg;
...
136 {
137 $mb = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:protocol", "samlp:StatusCode");
138: $mb->setAttribute("Value", "urn:oasis:names:tc:SAML:2.0:status:Success");
139 return $mb;
140 }
...
142 {
143 $pD = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:assertion", "saml:Assertion");
144: $pD->setAttribute("ID", $et["AssertID"]);
145: $pD->setAttribute("IssueInstant", $et["IssueInstant"]);
146: $pD->setAttribute("Version", "2.0");
147 $QB = $this->buildIssuer();
148 $pD->appendChild($QB);
...
177 $l7 = apply_filters("generate_saml_attribute_value", $l7, $this->current_user, "NameID", "NameID");
178 $tn = $this->xml->createElement("saml:NameID", htmlspecialchars($l7));
179: $tn->setAttribute("Format", "urn:oasis:names:tc:SAML:" . $this->mo_idp_nameid_format);
180 return $tn;
181 }
...
183 {
184 $xQ = $this->xml->createElement("saml:SubjectConfirmation");
185: $xQ->setAttribute("Method", "urn:oasis:names:tc:SAML:2.0:cm:bearer");
186 $ub = $this->getSubjectConfirmationData($et);
187 $xQ->appendChild($ub);
...
191 {
192 $ub = $this->xml->createElement("saml:SubjectConfirmationData");
193: $ub->setAttribute("NotOnOrAfter", $et["NotOnOrAfter"]);
194: $ub->setAttribute("Recipient", $this->acsUrl);
195 if (is_null($this->requestID)) {
196 goto e4;
197 }
198: $ub->setAttribute("InResponseTo", $this->requestID);
199 e4:
200 return $ub;
...
203 {
204 $gG = $this->xml->createElement("saml:Conditions");
205: $gG->setAttribute("NotBefore", $et["NotBefore"]);
206: $gG->setAttribute("NotOnOrAfter", $et["NotOnOrAfter"]);
207 $vj = $this->buildAudienceRestriction();
208 $gG->appendChild($vj);
...
219 {
220 $kG = $this->xml->createElement("saml:AuthnStatement");
221: $kG->setAttribute("AuthnInstant", $et["AuthnInstant"]);
222: $kG->setAttribute("SessionIndex", $this->sessionIndex);
223: $kG->setAttribute("SessionNotOnOrAfter", $et["SessionNotOnOrAfter"]);
224 $I4 = $this->xml->createElement("saml:AuthnContext");
225 $dS = $this->xml->createElement("saml:AuthnContextClassRef", "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport");
...
232 $gk = $this->xml->createElement("saml:AttributeStatement");
233 foreach ($this->sp_attr as $Hw) {
234: $YK = $this->buildAttribute($Hw->mo_sp_attr_name, $Hw->mo_sp_attr_value, $Hw->mo_attr_type);
235 if (is_null($YK)) {
236 goto ME;
...
243 return $gk;
244 }
245: function buildAttribute($wf, $wm, $ZV)
246 {
247 if ($wf === "groupMapName") {
...
276 return null;
277 eZ:
278: return $this->createAttributeNode($l7, $wf);
279 }
280: function createAttributeNode($l7, $wf)
281 {
282 $YK = $this->xml->createElement("saml:Attribute");
283: $YK->setAttribute("Name", $wf);
284: $YK->setAttribute("NameFormat", "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified");
285 if (is_array($l7)) {
286 goto zH;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\LogoutRequest.php:
41 $this->certificates = array();
42 $this->validators = array();
43: $this->issueInstant = SAMLUtilities::xsDateTimeToTimestamp($eL->getAttribute("IssueInstant"));
44 $this->parseID($eL);
45 $this->checkSAMLVersion($eL);
46: if (!$eL->hasAttribute("Destination")) {
47 goto A3;
48 }
49: $this->destination = $eL->getAttribute("Destination");
50 A3:
51 $this->parseIssuer($eL);
52 $this->parseAndValidateSignature($eL);
53: if (!$eL->hasAttribute("NotOnOrAfter")) {
54 goto PL;
55 }
56: $this->notOnOrAfter = SAMLUtilities::xsDateTimeToTimestamp($eL->getAttribute("NotOnOrAfter"));
57 PL:
58 $this->parseNameId($eL);
..
75 {
76 $Fg = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:protocol", "samlp:LogoutRequest");
77: $Fg->setAttribute("ID", $this->generateUniqueID(40));
78: $Fg->setAttribute("Version", "2.0");
79: $Fg->setAttribute("IssueInstant", str_replace("+00:00", "Z", gmdate("c", time())));
80: $Fg->setAttribute("Destination", $this->destination);
81 return $Fg;
82 }
..
95 protected function parseID($eL)
96 {
97: if ($eL->hasAttribute("ID")) {
98 goto XP;
99 }
100 throw new MissingIDException();
101 XP:
102: $this->id = $eL->getAttribute("ID");
103 }
104 protected function checkSAMLVersion($eL)
105 {
106: if (!($eL->getAttribute("Version") !== "2.0")) {
107 goto go;
108 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\MetadataGenerator.php:
64 {
65 $cM = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "EntityDescriptor");
66: $cM->setAttribute("entityID", $this->issuer);
67 return $cM;
68 }
..
70 {
71 $SO = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "IDPSSODescriptor");
72: $SO->setAttribute("WantAuthnRequestsSigned", $this->wantAssertionSigned);
73: $SO->setAttribute("protocolSupportEnumeration", "urn:oasis:names:tc:SAML:2.0:protocol");
74 return $SO;
75 }
..
77 {
78 $xO = $this->xml->createElement("KeyDescriptor");
79: $xO->setAttribute("use", "signing");
80 $Zr = $this->generateKeyInfo();
81 $xO->appendChild($Zr);
..
107 foreach ($this->singleSignOnServiceURLs as $YR => $L3) {
108 $VY = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "SingleSignOnService");
109: $VY->setAttribute("Binding", $YR);
110: $VY->setAttribute("Location", $L3);
111 array_push($Oi, $VY);
112 Ll:
...
120 foreach ($this->singleLogoutServiceURLs as $YR => $L3) {
121 $kC = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "SingleLogoutService");
122: $kC->setAttribute("Binding", $YR);
123: $kC->setAttribute("Location", $L3);
124 array_push($Su, $kC);
125 VQ:
...
131 {
132 $QM = $this->xml->createElement("RoleDescriptor");
133: $QM->setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
134: $QM->setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:fed", "http://docs.oasis-open.org/wsfed/federation/200706");
135: $QM->setAttribute("ServiceDisplayName", "miniOrange Inc");
136: $QM->setAttribute("xsi:type", "fed:SecurityTokenServiceType");
137: $QM->setAttribute("protocolSupportEnumeration", "http://docs.oasis-open.org/ws-sx/ws-trust/200512 http://schemas.xmlsoap.org/ws/2005/02/trust http://docs.oasis-open.org/wsfed/federation/200706");
138 return $QM;
139 }
...
142 $Zu = $this->xml->createElement("fed:TokenTypesOffered");
143 $LZ = $this->xml->createElement("fed:TokenType");
144: $LZ->setAttribute("Uri", "urn:oasis:names:tc:SAML:1.0:assertion");
145 $Zu->appendChild($LZ);
146 return $Zu;
...
158 $AP = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "md:Organization");
159 $Pk = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "md:OrganizationName", "miniOrange");
160: $Pk->setAttribute("xml:lang", "en-US");
161 $Nk = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "md:OrganizationDisplayName", "miniOrange");
162: $Nk->setAttribute("xml:lang", "en-US");
163 $RB = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "md:OrganizationURL", "https://miniorange.com");
164: $RB->setAttribute("xml:lang", "en-US");
165 $AP->appendChild($Pk);
166 $AP->appendChild($Nk);
...
171 {
172 $ry = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "md:ContactPerson");
173: $ry->setAttribute("contactType", "technical");
174 $Pk = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "md:GivenName", "miniOrange");
175 $xt = $this->xml->createElementNS("urn:oasis:names:tc:SAML:2.0:metadata", "md:SurName", "Support");
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\MetadataReader.php:
57 $this->encryptionCertificate = array();
58 $this->nameID = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress";
59: if (!$eL->hasAttribute("entityID")) {
60 goto fP;
61 }
62: $this->entityID = $eL->getAttribute("entityID");
63 fP:
64 $y7 = SAMLUtilities::xpQuery($eL, "./saml_metadata:SPSSODescriptor");
..
76 throw new InvalidSPSSODescriptorException("MISSING_SP");
77 BP:
78: if (!$y7[0]->hasAttribute("AuthnRequestsSigned")) {
79 goto gB;
80 }
81: $this->signedRequest = $y7[0]->getAttribute("AuthnRequestsSigned");
82 gB:
83: if (!$y7[0]->hasAttribute("WantAssertionsSigned")) {
84 goto z3;
85 }
86: $this->assertionSigned = $y7[0]->getAttribute("WantAssertionsSigned");
87 z3:
88 $Ao = $y7[0];
..
102 $FK = SAMLUtilities::xpQuery($eL, "./mdui:UIInfo/mdui:DisplayName");
103 foreach ($FK as $Pk) {
104: if (!($Pk->hasAttribute("xml:lang") && $Pk->getAttribute("xml:lang") == "en")) {
105 goto gx;
106 }
...
115 $oM = SAMLUtilities::xpQuery($eL, "./saml_metadata:SingleSignOnService");
116 foreach ($oM as $I5) {
117: $YR = str_replace("urn:oasis:names:tc:SAML:2.0:bindings:", '', $I5->getAttribute("Binding"));
118: $this->loginDetails = array_merge($this->loginDetails, array($YR => $I5->getAttribute("Location")));
119 Qg:
120 }
...
127 goto Z5;
128 }
129: $this->sloBindingType = str_replace("urn:oasis:names:tc:SAML:2.0:bindings:", '', $kw[0]->getAttribute("Binding"));
130 Z5:
131 foreach ($kw as $wu) {
132: $YR = str_replace("urn:oasis:names:tc:SAML:2.0:bindings:", '', $wu->getAttribute("Binding"));
133: $this->logoutDetails = array_merge($this->logoutDetails, array($YR => $wu->getAttribute("Location")));
134 Jy:
135 }
...
139 {
140 foreach (SAMLUtilities::xpQuery($eL, "./saml_metadata:KeyDescriptor") as $b2) {
141: if ($b2->hasAttribute("use")) {
142 goto E7;
143 }
...
145 goto Z_;
146 E7:
147: if ($b2->getAttribute("use") == "encryption") {
148 goto Zd;
149 }
...
183 {
184 $GQ = SAMLUtilities::xpQuery($eL, "./saml_metadata:AssertionConsumerService");
185: if (!$GQ[0]->hasAttribute("Location")) {
186 goto WO;
187 }
188: $this->acsUrl = $GQ[0]->getAttribute("Location");
189 WO:
190 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\utilities\SAMLUtilities.php:
121 $uX = array("Value" => trim($eL->textContent));
122 foreach (array("NameQualifier", "SPNameQualifier", "Format") as $Hw) {
123: if (!$eL->hasAttribute($Hw)) {
124 goto je;
125 }
126: $uX[$Hw] = $eL->getAttribute($Hw);
127 je:
128 bx:
...
246 lv:
247 $BI = $BI[0];
248: if ($BI->hasAttribute("Algorithm")) {
249 goto iK;
250 }
...
252 exit;
253 iK:
254: $B5 = $BI->getAttribute("Algorithm");
255 if (!($xO->type === XMLSecurityKey::RSA_SHA256 && $B5 !== $xO->type)) {
256 goto Yi;
...
344 public static function parseBoolean(\DOMElement $D_, $K8, $nY = null)
345 {
346: if ($D_->hasAttribute($K8)) {
347 goto w0;
348 }
349 return $nY;
350 w0:
351: $l7 = $D_->getAttribute($K8);
352 switch (strtolower($l7)) {
353 case "0":
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\wsfed\GenerateWsFedResponse.php:
110 {
111 $pD = $this->xml->createElementNS("urn:oasis:names:tc:SAML:1.0:assertion", "saml:Assertion");
112: $pD->setAttribute("MajorVersion", "1");
113: $pD->setAttribute("MinorVersion", "1");
114: $pD->setAttribute("AssertionID", $et["AssertID"]);
115: $pD->setAttribute("Issuer", $this->issuer);
116: $pD->setAttribute("IssueInstant", $et["IssueInstant"]);
117 $K3 = $this->createSamlConditions($et);
118 $pD->appendChild($K3);
...
120 goto u9;
121 }
122: $gk = $this->createAttributeStatement($et);
123 $pD->appendChild($gk);
124 u9:
...
148 {
149 $Fg = $this->xml->createElement("ds:CanonicalizationMethod");
150: $Fg->setAttribute("Algorithm", "http://www.w3.org/2001/10/xml-exc-c14n#");
151 return $Fg;
152 }
...
154 {
155 $Fg = $this->xml->createElement("saml:AuthenticationStatement");
156: $Fg->setAttribute("AuthenticationMethod", "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport");
157: $Fg->setAttribute("AuthenticationInstant", $et["AuthnInstant"]);
158 $Xa = $this->createSubject();
159 $this->subject = $Xa;
...
161 return $Fg;
162 }
163: function createAttributeStatement($et)
164 {
165 $gk = $this->xml->createElement("saml:AttributeStatement");
...
168 $gk->appendChild($x4);
169 foreach ($this->sp_attr as $Hw) {
170: $YK = $this->buildAttribute($et, $Hw->mo_sp_attr_name, $Hw->mo_sp_attr_value, $Hw->mo_attr_type);
171 if (is_null($YK)) {
172 goto xe;
...
179 return $gk;
180 }
181: function buildAttribute($et, $wf, $wm, $ZV)
182 {
183 if ($wf === "groupMapName") {
...
212 return null;
213 E4:
214: return $this->createAttributeNode($l7, $wf);
215 }
216: function createAttributeNode($l7, $wf)
217 {
218 $YK = $this->xml->createElement("saml:Attribute");
219: $YK->setAttribute("AttributeName", $wf);
220: $YK->setAttribute("AttributeNamespace", "http://schemas.xmlsoap.org/claims");
221 if (is_array($l7)) {
222 goto Bx;
...
264 $l7 = apply_filters("generate_wsfed_attribute_value", $l7, $this->current_user, "NameID");
265 $Fg = $this->xml->createElement("saml:NameIdentifier", htmlspecialchars($l7));
266: $Fg->setAttribute("Format", "urn:oasis:names:tc:SAML:" . $this->mo_idp_nameid_format);
267 return $Fg;
268 }
...
270 {
271 $Fg = $this->xml->createElement("saml:Conditions");
272: $Fg->setAttribute("NotBefore", $et["NotBefore"]);
273: $Fg->setAttribute("NotOnOrAfter", $et["NotOnOrAfter"]);
274 $Xa = $this->createSamlAudience();
275 $Fg->appendChild($Xa);
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\wsfed\WsFedRequest.php:
4 namespace IDP\Helper\WSFED;
5
6: use IDP\Exception\MissingWaAttributeException;
7: use IDP\Exception\MissingWtRealmAttributeException;
8 use IDP\Helper\Constants\MoIDPConstants;
9 use IDP\Helper\Utilities\MoIDPUtility;
..
39 goto rS;
40 }
41: throw new MissingWaAttributeException();
42 rS:
43 if (!MoIDPUtility::isBlank($this->wtrealm)) {
44 goto ge;
45 }
46: throw new MissingWtRealmAttributeException();
47 ge:
48 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\views\common-elements.php:
84 goto qx;
85 pW:
86: $Ko = $dbIDPQueries->get_sp_attributes($di->id);
87: $qY = $dbIDPQueries->get_sp_role_attribute($di->id);
88 if (isset($Ko) && !empty($Ko)) {
89 goto VH;
..
120 global $dbIDPQueries;
121 $current_user = wp_get_current_user();
122: $O9 = $dbIDPQueries->getDistinctMetaAttributes();
123 foreach ($O9 as $xO => $l7) {
124 $ID[$l7->meta_key] = $l7->meta_key;
195 matches across 20 files
Searching 133 files for "apply_filters"
\wp-content\plugins\miniorange-wp-saml-idp-premium\handler\ProcessRequestHandler.php:
68 setcookie("clientRequestId", $aD->getClientRequestId(), time() + 21600, "/");
69 $L3 = wp_login_url();
70: $L3 = apply_filters("mo_idp_custom_login_url", $L3);
71 wp_safe_redirect($L3);
72 exit;
..
86 setcookie("requestID", $aD->getRequestID(), time() + 21600, "/");
87 $L3 = wp_login_url();
88: $L3 = apply_filters("mo_idp_custom_login_url", $L3);
89 wp_safe_redirect($L3);
90 exit;
..
103 setcookie("return_to_url", $Hi, time() + 21600, "/");
104 $L3 = wp_login_url();
105: $L3 = apply_filters("mo_idp_custom_login_url", $L3);
106 wp_safe_redirect($L3);
107 exit;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\jwt\GenerateJwtToken.php:
107 $l7 = get_user_meta($this->current_user->ID, $wm, TRUE);
108 zY:
109: $l7 = apply_filters("generate_jwt_attribute_value", $l7, $this->current_user, $wf, $wm);
110: $ft = [$wf => apply_filters("modify_saml_attr_value", $l7)];
111 return $ft;
112 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\GenerateResponse.php:
175 $gt = !empty($this->mo_idp_nameid_attr) && $this->mo_idp_nameid_attr != "emailAddress" ? $this->mo_idp_nameid_attr : "user_email";
176 $l7 = MoIDPUtility::isBlank($this->current_user->{$gt}) ? get_user_meta($this->current_user->ID, $gt, true) : $this->current_user->{$gt};
177: $l7 = apply_filters("generate_saml_attribute_value", $l7, $this->current_user, "NameID", "NameID");
178 $tn = $this->xml->createElement("saml:NameID", htmlspecialchars($l7));
179 $tn->setAttribute("Format", "urn:oasis:names:tc:SAML:" . $this->mo_idp_nameid_format);
...
270 $l7 = $this->current_user->roles;
271 S6:
272: $l7 = apply_filters("generate_saml_attribute_value", $l7, $this->current_user, $wf, $wm);
273 if (!empty($l7)) {
274 goto eZ;
...
286 goto zH;
287 }
288: $l7 = apply_filters("modify_saml_attr_value", $l7);
289 $zV = $this->xml->createElement("saml:AttributeValue", htmlspecialchars($l7));
290 $YK->appendChild($zV);
...
292 zH:
293 foreach ($l7 as $xO => $tL) {
294: $tL = apply_filters("modify_saml_attr_value", $tL);
295 $zV = $this->xml->createElement("saml:AttributeValue", htmlspecialchars($tL));
296 $YK->appendChild($zV);
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\utilities\MoIDPUtility.php:
60 goto kB;
61 }
62: apply_filters("wppb_curpageurl", $T9);
63 kB:
64 return $T9;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\wsfed\GenerateWsFedResponse.php:
206 $l7 = get_user_meta($this->current_user->ID, $wm, TRUE);
207 mM:
208: $l7 = apply_filters("generate_wsfed_attribute_value", $l7, $this->current_user, $wf);
209 if (!empty($l7)) {
210 goto E4;
...
222 goto Bx;
223 }
224: $l7 = apply_filters("modify_wsfed_attr_value", $l7);
225 $zV = $this->xml->createElement("saml:AttributeValue", htmlspecialchars($l7));
226 $YK->appendChild($zV);
...
228 Bx:
229 foreach ($l7 as $xO => $tL) {
230: $tL = apply_filters("modify_wsfed_attr_value", $tL);
231 $zV = $this->xml->createElement("saml:AttributeValue", htmlspecialchars($tL));
232 $YK->appendChild($zV);
...
262 $gt = !empty($this->mo_idp_nameid_attr) && $this->mo_idp_nameid_attr != "emailAddress" ? $this->mo_idp_nameid_attr : "user_email";
263 $l7 = MoIDPUtility::isBlank($this->current_user->{$gt}) ? get_user_meta($this->current_user->ID, $gt, true) : $this->current_user->{$gt};
264: $l7 = apply_filters("generate_wsfed_attribute_value", $l7, $this->current_user, "NameID");
265 $Fg = $this->xml->createElement("saml:NameIdentifier", htmlspecialchars($l7));
266 $Fg->setAttribute("Format", "urn:oasis:names:tc:SAML:" . $this->mo_idp_nameid_format);
\wp-content\plugins\miniorange-wp-saml-idp-premium\views\common-elements.php:
131 }
132 tr:
133: $ID = apply_filters("user_info_attr_list", $ID);
134 return $ID;
135 }
?>
Did this file decode correctly?
Original Code
Searching 133 files for "miniOrange WP IDP SSO"
0 matches
Searching 133 files for "miniOrange WP IDP SSO"
0 matches
Searching 133 files for "attribute"
\wp-content\plugins\miniorange-wp-saml-idp-premium\actions\SettingsActions.php:
15 use IDP\Exception\RequiredFieldsException;
16 use IDP\Exception\SPNameAlreadyInUseException;
17: use IDP\Handler\AttributeSettingsHandler;
18 use IDP\Handler\CustomLoginURLHandler;
19 use IDP\Handler\RoleBasedSSOHandler;
..
42 $this->idpSettingsHandler = IDPSettingsHandler::instance();
43 $this->feedbackHandler = FeedbackHandler::instance();
44: $this->attrSettingsHandler = AttributeSettingsHandler::instance();
45 $this->metadataReaderHandler = MetadataReaderHandler::instance();
46 $this->roleBasedSSOHandler = RoleBasedSSOHandler::instance();
..
122 goto fw;
123 case $this->funcs[9]:
124: $this->attrSettingsHandler->mo_add_role_attribute($_POST);
125 goto fw;
126 case $this->funcs[10]:
\wp-content\plugins\miniorange-wp-saml-idp-premium\actions\SSOActions.php:
284 fr:
285 }
286: public function modifyUserAttributeDateValue($l7)
287 {
288 $kg = array("\144\x2e\x6d\56\x59", "\x64\x2f\155\57\131", "\x64\x2d\x6d\x2d\131", "\131\57\x6d\x2f\x64", "\131\55\x6d\55\144", "\131\56\x6d\x2e\x64", "\x6d\x2e\x64\x2e\x59", "\x6d\x2d\144\55\x59", "\155\57\x64\57\131");
\wp-content\plugins\miniorange-wp-saml-idp-premium\exception\MissingWaAttributeException.php:
5
6 use IDP\Helper\Constants\MoIDPMessages;
7: class MissingWaAttributeException extends \Exception
8 {
9 public function __construct()
\wp-content\plugins\miniorange-wp-saml-idp-premium\exception\MissingWtRealmAttributeException.php:
5
6 use IDP\Helper\Constants\MoIDPMessages;
7: class MissingWtRealmAttributeException extends \Exception
8 {
9 public function __construct()
\wp-content\plugins\miniorange-wp-saml-idp-premium\handler\AttributeSettingsHandler.php:
9 use IDP\Helper\Traits\Instance;
10 use IDP\Helper\Utilities\MoIDPUtility;
11: final class AttributeSettingsHandler extends SPSettingsUtility
12 {
13 use Instance;
14: public function mo_add_role_attribute($y8)
15 {
16 global $dbIDPQueries;
..
32 $vF = sanitize_text_field($y8["\x6d\157\137\151\144\160\x5f\162\x6f\x6c\x65\137\155\x61\160\x70\151\x6e\x67\137\x6e\141\x6d\x65"]);
33 Nq:
34: $Ko = $dbIDPQueries->get_sp_role_attribute($x9);
35 if (!isset($Ko)) {
36 goto c2;
..
39 $u0["\155\x6f\137\x73\160\x5f\141\164\x74\x72\137\156\141\x6d\x65"] = "\x67\x72\x6f\x75\x70\x4d\x61\x70\116\141\x6d\145";
40 $u0["\x6d\157\137\141\x74\x74\162\x5f\164\171\x70\x65"] = 1;
41: $dbIDPQueries->delete_sp_attributes($u0);
42 c2:
43 if (is_null($cK)) {
..
52 $qz["\155\x6f\x5f\x73\x70\137\x61\x74\164\x72\x5f\166\x61\154\x75\145"] = sanitize_text_field($vF);
53 $qz["\155\x6f\137\x61\x74\x74\162\137\x74\171\160\x65"] = 1;
54: $dbIDPQueries->insert_sp_attributes($qz);
55 $dbIDPQueries->update_sp_data($fL, $kl);
56 iU:
..
68 $cK = isset($y8["\155\x6f\137\x69\144\160\x5f\x61\164\164\162\x69\142\x75\164\145\x5f\155\141\160\x70\x69\x6e\x67\137\x6e\141\155\145"]) ? $y8["\x6d\x6f\137\x69\144\160\x5f\141\164\164\x72\151\142\x75\x74\x65\137\x6d\141\x70\160\151\156\147\137\x6e\141\155\145"] : '';
69 $vF = isset($y8["\x6d\157\x5f\151\144\x70\137\x61\x74\x74\x72\151\142\165\x74\145\137\155\x61\160\160\x69\156\x67\x5f\166\x61\x6c"]) ? $y8["\155\157\x5f\151\144\160\137\x61\x74\164\x72\x69\x62\x75\x74\x65\137\155\141\160\160\x69\156\147\x5f\166\x61\154"] : '';
70: $Ko = $dbIDPQueries->get_sp_attributes($x9);
71 if (!isset($Ko)) {
72 goto Zl;
..
74 $u0["\155\x6f\137\x73\160\x5f\x69\x64"] = $x9;
75 $u0["\x6d\x6f\x5f\141\x74\x74\x72\x5f\x74\x79\x70\145"] = 0;
76: $dbIDPQueries->delete_sp_attributes($u0);
77 Zl:
78 if (empty($cK)) {
..
87 $qz["\155\x6f\137\x73\160\x5f\x61\164\164\x72\137\x6e\141\x6d\145"] = sanitize_text_field($l7);
88 $qz["\x6d\x6f\x5f\x73\x70\x5f\x61\x74\x74\162\137\166\141\154\x75\145"] = sanitize_text_field($vF[$xO]);
89: $dbIDPQueries->insert_sp_attributes($qz);
90 Br:
91 Q_:
..
111 $u0["\155\157\x5f\163\x70\x5f\151\144"] = $x9;
112 $u0["\155\x6f\x5f\141\164\x74\x72\x5f\164\171\x70\145"] = 2;
113: $dbIDPQueries->delete_sp_attributes($u0);
114 F5:
115 if (empty($cK)) {
...
125 $qz["\x6d\157\x5f\x73\160\x5f\x61\164\164\x72\137\x76\x61\154\165\x65"] = sanitize_text_field(stripslashes($vF[$xO]));
126 $qz["\x6d\x6f\x5f\141\x74\x74\162\137\x74\171\x70\145"] = 2;
127: $dbIDPQueries->insert_sp_attributes($qz);
128 Im:
129 UN:
\wp-content\plugins\miniorange-wp-saml-idp-premium\handler\SendResponseHandler.php:
97 $di = $dbIDPQueries->get_sp_from_acs($Oy);
98 $e6 = !empty($di) ? $di->id : null;
99: $Ko = $dbIDPQueries->get_all_sp_attributes($e6);
100 return array(MoIDPConstants::SAML_RESPONSE, $Oy, $QB, $vj, $A2, $Ko, $di, $Hi, $FW);
101 }
...
113 $di = $dbIDPQueries->get_sp_from_issuer($Nv);
114 $e6 = !empty($di) ? $di->id : null;
115: $Ko = $dbIDPQueries->get_all_sp_attributes($e6);
116 return array(MoIDPConstants::WS_FED_RESPONSE, $Nv, $QS, $E2, $QB, $di, $Ko, $Hi, $uM);
117 }
...
165 $di = $dbIDPQueries->get_sp_from_acs($c9);
166 $e6 = !empty($di) ? $di->id : null;
167: $Ko = $dbIDPQueries->get_all_sp_attributes($e6);
168 $B5 = $di->mo_idp_nameid_format;
169 return array(MoIDPConstants::JWT_RESPONSE, $c9, $B5, $vs, $di, $Ko, $ga, NULL, NULL);
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\common\XMLSecEnc.php:
44 $xL = XMLSecurityDSig::generateGUID();
45 $sU = $DI->documentElement;
46: $sU->setAttribute("\111\144", $xL);
47 $this->references[$Pk] = array("\156\157\144\x65" => $D_, "\164\171\x70\145" => $ZV, "\145\156\143\x6e\x6f\x64\x65" => $DI, "\162\x65\146\165\162\151" => $xL);
48 }
..
76 case self::Element:
77 $fL = $oy->saveXML($this->rawNode);
78: $this->encdoc->documentElement->setAttribute("\124\x79\160\x65", self::Element);
79 goto CI;
80 case self::Content:
..
85 }
86 mj:
87: $this->encdoc->documentElement->setAttribute("\124\x79\160\x65", self::Content);
88 goto CI;
89 default:
..
93 CI:
94 $eI = $this->encdoc->documentElement->appendChild($this->encdoc->createElementNS(self::XMLENCNS, "\170\145\x6e\x63\72\x45\156\x63\x72\x79\160\x74\x69\x6f\156\115\145\164\x68\157\144"));
95: $eI->setAttribute("\x41\154\147\x6f\x72\151\x74\150\x6d", $td->getAlgorithm());
96 $jn->parentNode->parentNode->insertBefore($eI, $jn->parentNode->parentNode->firstChild);
97 $ha = base64_encode($td->encryptData($fL));
..
247 gv:
248 $eI = $DS->appendChild($this->encdoc->createElementNS(self::XMLENCNS, "\170\145\156\x63\x3a\x45\156\x63\x72\x79\x70\x74\151\x6f\156\115\145\164\150\x6f\144"));
249: $eI->setAttribute("\101\x6c\147\x6f\x72\x69\164\x68\x6d", $ms->getAlgorith());
250 if (empty($ms->name)) {
251 goto qV;
...
263 $xL = $ln["\162\145\146\x75\162\151"];
264 $uq = $Yv->appendChild($this->encdoc->createElementNS(self::XMLENCNS, "\170\x65\156\143\72\104\141\164\x61\122\x65\146\145\x72\x65\x6e\x63\145"));
265: $uq->setAttribute("\x55\122\111", "\43" . $xL);
266 Rb:
267 }
...
326 goto b6;
327 }
328: $ma = $p1->getAttribute("\x41\x6c\x67\x6f\x72\x69\164\150\x6d");
329 try {
330 $td = new XMLSecurityKey($ma, array("\164\x79\x70\145" => "\160\x72\151\x76\141\164\x65"));
...
404 goto iA;
405 case "\x52\x65\164\x72\151\145\x76\141\154\115\x65\x74\x68\157\144":
406: $ZV = $Ag->getAttribute("\x54\x79\160\145");
407 if (!($ZV !== "\x68\164\x74\x70\x3a\x2f\57\x77\x77\x77\x2e\x77\x33\56\157\x72\x67\57\62\60\60\x31\x2f\60\64\x2f\x78\x6d\x6c\x65\156\143\x23\x45\156\x63\x72\171\x70\164\x65\x64\113\145\171")) {
408 goto ai;
...
410 goto iA;
411 ai:
412: $V7 = $Ag->getAttribute("\125\122\x49");
413 if (!($V7[0] !== "\x23")) {
414 goto gy;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\common\XMLSecurityDSig.php:
145 $GS->insertBefore($GZ, $GS->firstChild);
146 GU:
147: $GZ->setAttribute("\101\x6c\147\x6f\x72\151\x74\150\x6d", $this->canonicalMethod);
148 VN:
149 db:
...
219 goto Kz;
220 }
221: $g4 = $GZ->getAttribute("\101\x6c\x67\x6f\x72\151\164\x68\x6d");
222 foreach ($GZ->childNodes as $D_) {
223 if (!($D_->localName == "\111\x6e\x63\x6c\165\x73\x69\x76\x65\116\x61\x6d\x65\163\x70\141\x63\x65\x73")) {
224 goto MT;
225 }
226: if (!($si = $D_->getAttribute("\120\162\x65\x66\x69\x78\114\x69\163\164"))) {
227 goto fV;
228 }
...
298 $ru = null;
299 foreach ($I6 as $M9) {
300: $ib = $M9->getAttribute("\101\154\x67\x6f\162\x69\x74\x68\x6d");
301 switch ($ib) {
302 case "\x68\164\x74\x70\x3a\57\57\x77\167\x77\x2e\167\x33\x2e\x6f\162\x67\57\62\60\x30\61\57\x31\x30\x2f\x78\x6d\154\55\145\x78\143\55\143\61\x34\156\43":
...
318 goto wp;
319 }
320: if (!($si = $D_->getAttribute("\x50\x72\x65\146\x69\x78\114\151\x73\x74"))) {
321 goto Sr;
322 }
...
401 $MY = null;
402 $zT = true;
403: if ($V7 = $C5->getAttribute("\x55\x52\111")) {
404 goto rA;
405 }
...
466 public function getRefNodeID($C5)
467 {
468: if (!($V7 = $C5->getAttribute("\125\122\x49"))) {
469 goto AF;
470 }
...
569 goto Bu;
570 }
571: $V7 = $IJ ? $D_->getAttributeNS($IJ, $zP) : $D_->getAttribute($zP);
572 Bu:
573 if (!empty($V7)) {
...
575 }
576 $V7 = self::generateGUID();
577: $D_->setAttributeNS($IJ, $Pa, $V7);
578 UG:
579: $C5->setAttribute("\125\122\111", "\43" . $V7);
580 goto ix;
581 Uu:
582: $C5->setAttribute("\125\x52\x49", '');
583 ix:
584 $yf = $this->createNewSignNode("\124\x72\141\x6e\163\x66\x6f\x72\x6d\163");
...
598 goto BG;
599 }
600: $r0->setAttribute("\101\154\147\x6f\162\151\164\x68\x6d", $M9);
601 goto gq;
602 BG:
603: $r0->setAttribute("\101\154\147\157\162\x69\x74\150\x6d", "\150\164\x74\160\72\57\57\167\167\167\x2e\167\x33\56\157\x72\x67\57\124\x52\57\61\x39\71\71\57\122\x45\103\x2d\170\x70\141\x74\150\55\61\71\71\x39\x31\61\x31\x36");
604 $MK = $this->createNewSignNode("\130\120\x61\x74\x68", $M9["\150\164\164\160\72\x2f\57\x77\x77\167\56\167\x33\x2e\x6f\162\x67\x2f\124\x52\x2f\61\71\71\71\x2f\122\x45\103\55\170\x70\x61\x74\150\55\x31\x39\71\x39\x31\x31\61\x36"]["\x71\165\x65\162\171"]);
605 $r0->appendChild($MK);
...
608 }
609 foreach ($M9["\x68\x74\164\x70\72\x2f\x2f\167\x77\167\56\x77\x33\x2e\x6f\x72\147\x2f\124\x52\57\x31\71\x39\x39\x2f\x52\x45\103\55\x78\x70\141\164\150\x2d\61\x39\x39\71\x31\61\61\x36"]["\156\x61\155\145\163\160\141\143\145\163"] as $Pf => $q1) {
610: $MK->setAttributeNS("\x68\164\164\x70\72\x2f\57\x77\x77\x77\56\x77\63\x2e\157\x72\x67\x2f\62\60\60\x30\x2f\170\x6d\154\156\163\57", "\x78\155\154\x6e\x73\x3a{$Pf}", $q1);
611 V4:
612 }
...
621 $r0 = $this->createNewSignNode("\x54\x72\x61\156\163\x66\x6f\162\155");
622 $yf->appendChild($r0);
623: $r0->setAttribute("\x41\x6c\x67\x6f\x72\151\164\x68\155", $this->canonicalMethod);
624 hp:
625 $ZO = $this->processTransforms($C5, $D_);
...
627 $j9 = $this->createNewSignNode("\104\151\147\x65\163\164\115\x65\164\150\157\144");
628 $C5->appendChild($j9);
629: $j9->setAttribute("\101\x6c\x67\157\162\x69\164\150\155", $ib);
630 $PR = $this->createNewSignNode("\104\x69\x67\x65\x73\164\126\141\154\x75\145", $Bl);
631 $C5->appendChild($PR);
...
670 goto Xv;
671 }
672: $FU->setAttribute("\115\x69\155\145\124\171\x70\145", $nf);
673 Xv:
674 if (empty($w0)) {
675 goto zZ;
676 }
677: $FU->setAttribute("\x45\156\143\157\x64\151\x6e\x67", $w0);
678 zZ:
679 if ($fL instanceof DOMElement) {
...
758 $ET = $wC->query($lB, $hJ);
759 $wq = $ET->item(0);
760: $wq->setAttribute("\101\x6c\147\x6f\x72\151\164\150\x6d", $td->type);
761 $fL = $this->canonicalizeData($hJ, $this->canonicalMethod);
762 $n2 = base64_encode($this->signData($td, $fL));
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\database\MoDbQueries.php:
156 return $wpdb->get_var($Qf);
157 }
158: function get_sp_attributes($e6)
159 {
160 global $wpdb;
161 return $wpdb->get_results("\x53\105\x4c\x45\103\124\x20\x2a\40\106\x52\x4f\x4d\40" . $this->spAttrTableName . "\40\x57\110\105\x52\105\40\x6d\x6f\137\163\160\x5f\x69\x64\x20\75\x20{$e6}\40\101\x4e\x44\x20\155\x6f\x5f\x73\x70\137\141\x74\164\162\137\156\x61\x6d\145\x20\x3c\x3e\x20\47\x67\162\157\165\x70\x4d\141\x70\x4e\x61\x6d\x65\x27\40\101\116\104\40\x6d\157\137\141\164\164\162\137\x74\x79\x70\x65\40\x3d\40\x30");
162 }
163: function get_sp_role_attribute($e6)
164 {
165 global $wpdb;
166 return $wpdb->get_row("\123\105\x4c\105\x43\124\x20\52\40\x46\x52\x4f\115\40" . $this->spAttrTableName . "\x20\127\110\x45\122\x45\40\x6d\x6f\137\163\160\137\151\144\40\x3d\x20{$e6}\40\101\x4e\x44\x20\x6d\157\x5f\x73\x70\137\141\164\x74\x72\x5f\x6e\x61\155\145\40\75\40\x27\x67\x72\157\165\x70\x4d\141\160\x4e\x61\155\x65\47");
167 }
168: function get_all_sp_attributes($e6)
169 {
170 global $wpdb;
...
199 {
200 global $wpdb;
201: $this->delete_sp_attributes($v0);
202 $wpdb->delete($this->spDataTableName, $RV, $rD = null);
203 }
204: function delete_sp_attributes($u0)
205 {
206 global $wpdb;
207 $wpdb->delete($this->spAttrTableName, $u0, $rD = null);
208 }
209: function insert_sp_attributes($qz)
210 {
211 global $wpdb;
...
227 return $wpdb->get_results("\123\105\x4c\x45\x43\124\40\x6d\157\137\x69\144\160\x5f\x70\x72\157\164\x6f\x63\x6f\x6c\x5f\x74\171\160\145\40\106\x52\117\115\40" . $this->spDataTableName);
228 }
229: function getDistinctMetaAttributes()
230 {
231 global $wpdb;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\jwt\GenerateJwtToken.php:
68 $YK = [];
69 foreach ($this->sp_attr as $Hw) {
70: $YK = array_merge($YK, $this->buildAttribute($et, $Hw->mo_sp_attr_name, $Hw->mo_sp_attr_value, $Hw->mo_attr_type));
71 rp:
72 }
..
80 return \json_encode($Ep);
81 }
82: function buildAttribute($et, $wf, $wm, $ZV)
83 {
84 if ($wf === "\147\x72\157\x75\x70\x4d\141\160\x4e\141\x6d\x65") {
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\AuthnRequest.php:
40 $this->forceAuthn = SAMLUtilities::parseBoolean($eL, "\106\157\162\x63\x65\x41\x75\164\150\x6e", false);
41 $this->isPassive = SAMLUtilities::parseBoolean($eL, "\x49\x73\x50\141\x73\x73\151\x76\145", false);
42: if (!$eL->hasAttribute("\x41\163\x73\145\162\164\x69\157\x6e\x43\x6f\156\x73\165\x6d\145\162\x53\145\162\166\151\143\x65\125\x52\x4c")) {
43 goto ch;
44 }
45: $this->assertionConsumerServiceURL = $eL->getAttribute("\101\163\x73\145\x72\164\151\x6f\x6e\x43\x6f\156\x73\x75\x6d\145\x72\123\145\x72\166\x69\x63\x65\125\x52\114");
46 ch:
47: if (!$eL->hasAttribute("\120\162\157\x74\x6f\x63\x6f\x6c\102\151\x6e\144\151\x6e\147")) {
48 goto Ko;
49 }
50: $this->protocolBinding = $eL->getAttribute("\x50\162\x6f\164\x6f\x63\x6f\x6c\x42\151\156\144\x69\x6e\x67");
51 Ko:
52: if (!$eL->hasAttribute("\101\164\x74\x72\x69\142\x75\164\x65\x43\157\x6e\163\165\x6d\151\156\x67\123\x65\x72\166\151\143\145\x49\x6e\x64\145\x78")) {
53 goto ws;
54 }
55: $this->attributeConsumingServiceIndex = (int) $eL->getAttribute("\101\164\x74\162\151\x62\x75\x74\145\103\157\x6e\x73\x75\155\151\156\x67\x53\x65\162\x76\x69\x63\x65\x49\x6e\144\145\170");
56 ws:
57: if (!$eL->hasAttribute("\x41\x73\x73\145\162\x74\151\157\156\103\157\x6e\163\165\155\145\162\123\x65\162\166\151\x63\x65\x49\x6e\144\x65\x78")) {
58 goto rc;
59 }
60: $this->assertionConsumerServiceIndex = (int) $eL->getAttribute("\101\163\163\145\162\x74\x69\157\x6e\x43\157\x6e\x73\x75\155\145\x72\x53\x65\162\x76\151\143\x65\111\x6e\144\x65\170");
61 rc:
62: if (!$eL->hasAttribute("\x44\x65\x73\x74\151\x6e\x61\164\x69\157\156")) {
63 goto Lr;
64 }
65: $this->destination = $eL->getAttribute("\104\x65\163\x74\x69\156\141\x74\x69\157\x6e");
66 Lr:
67 if (!isset($eL->namespaceURI)) {
..
70 $this->namespaceURI = $eL->namespaceURI;
71 FJ:
72: if (!$eL->hasAttribute("\x56\145\x72\x73\x69\x6f\x6e")) {
73 goto ow;
74 }
75: $this->version = $eL->getAttribute("\126\145\162\163\151\157\x6e");
76 ow:
77: if (!$eL->hasAttribute("\111\x73\163\x75\x65\x49\156\x73\164\x61\156\164")) {
78 goto BR;
79 }
80: $this->issueInstant = $eL->getAttribute("\111\x73\163\x75\x65\111\x6e\x73\x74\141\x6e\164");
81 BR:
82: if (!$eL->hasAttribute("\x49\x44")) {
83 goto sT;
84 }
85: $this->requestID = $eL->getAttribute("\x49\104");
86 sT:
87 $this->checkAuthnRequestIssueInstant();
..
111 Ug:
112 $iD = $iD[0];
113: if (!$iD->hasAttribute("\106\157\162\155\141\x74")) {
114 goto Pf;
115 }
116: $this->nameIdPolicy["\106\x6f\162\155\141\x74"] = $iD->getAttribute("\x46\x6f\x72\155\x61\164");
117 Pf:
118: if (!$iD->hasAttribute("\123\x50\x4e\x61\x6d\145\121\165\141\154\x69\x66\x69\145\162")) {
119 goto LC;
120 }
121: $this->nameIdPolicy["\x53\120\116\x61\x6d\145\121\165\141\x6c\x69\x66\151\145\x72"] = $iD->getAttribute("\x53\x50\x4e\141\x6d\145\121\165\141\154\x69\x66\x69\x65\162");
122 LC:
123: if (!$iD->hasAttribute("\x41\x6c\x6c\x6f\167\x43\162\x65\141\164\145")) {
124 goto gS;
125 }
...
143 }
144 xn:
145: if (!$zC->hasAttribute("\103\x6f\x6d\x70\x61\162\151\x73\x6f\x6e")) {
146 goto PQ;
147 }
148: $Pl["\x43\x6f\x6d\160\141\162\x69\x73\x6f\x6e"] = $zC->getAttribute("\x43\157\155\x70\141\x72\151\163\x6f\156");
149 PQ:
150 $this->requestedAuthnContext = $Pl;
...
159 Uc:
160 $Ak = $Ak[0];
161: if (!$Ak->hasAttribute("\120\x72\157\x78\x79\x43\x6f\x75\x6e\164")) {
162 goto ew;
163 }
164: $this->ProxyCount = (int) $Ak->getAttribute("\x50\162\157\170\171\103\157\165\x6e\164");
165 ew:
166 $zN = SAMLUtilities::xpQuery($Ak, "\56\x2f\x73\x61\x6d\x6c\137\160\x72\157\x74\157\x63\157\154\72\111\x44\x50\114\151\x73\x74\x2f\163\x61\155\x6c\x5f\160\162\157\164\x6f\x63\157\x6c\72\x49\104\x50\x45\x6e\164\x72\171");
167 foreach ($zN as $li) {
168: if ($li->hasAttribute("\x50\x72\157\x76\151\144\x65\x72\111\x44")) {
169 goto cY;
170 }
171 throw new \Exception("\103\157\165\154\x64\x20\x6e\157\x74\40\x67\x65\x74\x20\x50\162\157\x76\151\144\145\162\111\x44\x20\146\x72\157\x6d\x20\x53\x63\x6f\x70\x69\156\x67\57\111\x44\120\105\x6e\164\x72\x79\40\x65\x6c\x65\155\145\156\x74\x20\x69\156\x20\x41\x75\164\150\156\122\145\161\165\145\163\x74\40\157\x62\x6a\145\x63\x74");
172 cY:
173: $this->IDPList[] = $li->getAttribute("\120\162\x6f\166\151\x64\145\x72\x49\104");
174 zq:
175 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\GenerateLogoutResponse.php:
36 {
37 $Fg = $this->xml->createElementNS("\165\162\x6e\x3a\x6f\x61\163\x69\163\x3a\156\x61\155\145\163\72\164\143\x3a\123\x41\115\x4c\x3a\x32\56\x30\72\160\x72\157\164\x6f\x63\x6f\x6c", "\163\141\x6d\x6c\x70\72\x4c\x6f\x67\157\x75\164\122\x65\163\160\x6f\x6e\x73\145");
38: $Fg->setAttribute("\x49\104", $this->generateUniqueID(40));
39: $Fg->setAttribute("\x56\x65\162\x73\151\x6f\156", "\x32\x2e\x30");
40: $Fg->setAttribute("\x49\163\x73\x75\145\x49\156\163\x74\x61\156\x74", str_replace("\53\x30\60\x3a\x30\60", "\132", gmdate("\x63", time())));
41: $Fg->setAttribute("\x44\145\163\164\x69\156\141\x74\x69\157\156", $this->destination);
42: $Fg->setAttribute("\x49\x6e\122\x65\x73\x70\157\x6e\x73\145\124\x6f", $this->inResponseTo);
43 return $Fg;
44 }
..
56 {
57 $mb = $this->xml->createElementNS("\165\162\156\x3a\x6f\x61\x73\151\x73\x3a\156\x61\155\x65\x73\x3a\164\143\72\123\101\115\114\x3a\62\56\60\x3a\160\162\x6f\164\157\143\157\x6c", "\163\x61\x6d\x6c\x70\x3a\x53\164\141\164\165\163\x43\157\144\x65");
58: $mb->setAttribute("\126\141\x6c\x75\145", "\x75\x72\x6e\72\157\x61\x73\151\x73\x3a\156\x61\x6d\145\x73\72\x74\x63\72\123\x41\115\x4c\72\62\56\60\x3a\163\164\x61\x74\x75\x73\72\x53\165\143\x63\x65\163\163");
59 return $mb;
60 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\GenerateResponse.php:
112 {
113 $Fg = $this->xml->createElementNS("\165\x72\x6e\x3a\x6f\x61\163\x69\163\x3a\156\141\x6d\x65\x73\72\164\x63\x3a\123\x41\115\x4c\x3a\62\x2e\60\x3a\160\162\x6f\164\x6f\143\x6f\154", "\163\141\155\x6c\x70\x3a\122\x65\x73\x70\x6f\x6e\x73\x65");
114: $Fg->setAttribute("\111\x44", $et["\111\104"]);
115: $Fg->setAttribute("\126\145\162\x73\151\157\x6e", "\x32\56\60");
116: $Fg->setAttribute("\111\163\163\x75\145\111\x6e\163\x74\x61\x6e\164", $et["\111\x73\163\x75\x65\111\x6e\x73\164\141\156\164"]);
117: $Fg->setAttribute("\x44\x65\x73\x74\x69\x6e\141\x74\x69\x6f\156", $this->acsUrl);
118 if (is_null($this->requestID)) {
119 goto KW;
120 }
121: $Fg->setAttribute("\x49\156\x52\x65\163\x70\x6f\x6e\163\145\x54\157", $this->requestID);
122 KW:
123 return $Fg;
...
136 {
137 $mb = $this->xml->createElementNS("\165\x72\x6e\x3a\x6f\141\x73\151\163\72\x6e\141\x6d\145\x73\x3a\x74\143\72\x53\101\115\x4c\x3a\x32\56\x30\72\x70\x72\157\x74\157\x63\157\154", "\x73\x61\x6d\154\160\72\x53\x74\x61\164\165\163\103\x6f\x64\x65");
138: $mb->setAttribute("\126\x61\154\165\x65", "\165\x72\x6e\x3a\157\x61\163\151\163\72\156\x61\155\x65\163\x3a\x74\x63\72\x53\x41\115\x4c\72\62\x2e\60\72\x73\164\141\164\165\x73\72\123\165\143\x63\145\163\163");
139 return $mb;
140 }
...
142 {
143 $pD = $this->xml->createElementNS("\x75\162\156\72\157\141\x73\x69\x73\x3a\156\x61\155\x65\x73\x3a\164\143\x3a\x53\101\115\114\x3a\x32\x2e\x30\x3a\141\x73\x73\145\162\164\x69\157\x6e", "\x73\141\155\154\72\x41\163\x73\145\162\164\x69\x6f\x6e");
144: $pD->setAttribute("\111\104", $et["\x41\163\x73\x65\x72\x74\111\104"]);
145: $pD->setAttribute("\111\163\x73\x75\x65\111\156\163\x74\x61\x6e\x74", $et["\111\x73\x73\165\x65\x49\156\x73\x74\141\156\x74"]);
146: $pD->setAttribute("\x56\145\x72\x73\151\x6f\x6e", "\x32\x2e\x30");
147 $QB = $this->buildIssuer();
148 $pD->appendChild($QB);
...
177 $l7 = apply_filters("\x67\145\x6e\x65\x72\x61\164\145\x5f\x73\x61\x6d\x6c\x5f\x61\x74\x74\x72\151\142\x75\164\145\x5f\166\x61\154\x75\x65", $l7, $this->current_user, "\x4e\141\155\x65\x49\104", "\116\x61\155\x65\111\x44");
178 $tn = $this->xml->createElement("\163\x61\155\x6c\72\116\x61\x6d\145\x49\104", htmlspecialchars($l7));
179: $tn->setAttribute("\x46\x6f\162\x6d\141\164", "\x75\162\156\x3a\x6f\x61\x73\x69\163\72\156\x61\155\145\x73\72\x74\143\72\123\x41\x4d\114\x3a" . $this->mo_idp_nameid_format);
180 return $tn;
181 }
...
183 {
184 $xQ = $this->xml->createElement("\x73\141\155\154\72\x53\x75\142\x6a\145\x63\x74\103\157\156\x66\x69\x72\x6d\141\x74\151\x6f\x6e");
185: $xQ->setAttribute("\x4d\145\x74\x68\157\144", "\165\x72\156\x3a\x6f\141\163\151\x73\x3a\x6e\x61\x6d\145\x73\x3a\x74\143\72\123\101\115\x4c\72\x32\x2e\x30\72\143\155\72\x62\x65\141\162\x65\162");
186 $ub = $this->getSubjectConfirmationData($et);
187 $xQ->appendChild($ub);
...
191 {
192 $ub = $this->xml->createElement("\x73\141\155\x6c\72\x53\165\142\152\x65\143\164\x43\x6f\x6e\x66\151\x72\x6d\x61\164\x69\157\x6e\x44\141\164\141");
193: $ub->setAttribute("\x4e\x6f\x74\x4f\x6e\117\x72\101\146\x74\x65\x72", $et["\116\x6f\164\117\156\x4f\x72\101\146\x74\145\162"]);
194: $ub->setAttribute("\122\x65\143\x69\x70\151\145\156\164", $this->acsUrl);
195 if (is_null($this->requestID)) {
196 goto e4;
197 }
198: $ub->setAttribute("\x49\x6e\x52\x65\x73\x70\157\156\163\145\124\x6f", $this->requestID);
199 e4:
200 return $ub;
...
203 {
204 $gG = $this->xml->createElement("\x73\141\x6d\x6c\72\x43\x6f\156\x64\x69\x74\151\157\x6e\163");
205: $gG->setAttribute("\x4e\x6f\164\102\x65\x66\x6f\x72\x65", $et["\x4e\157\164\102\145\x66\157\x72\x65"]);
206: $gG->setAttribute("\x4e\157\164\117\x6e\117\162\x41\x66\164\x65\x72", $et["\116\x6f\164\x4f\156\117\x72\101\146\x74\x65\x72"]);
207 $vj = $this->buildAudienceRestriction();
208 $gG->appendChild($vj);
...
219 {
220 $kG = $this->xml->createElement("\163\141\155\x6c\72\x41\x75\x74\x68\156\x53\x74\141\164\145\155\x65\156\164");
221: $kG->setAttribute("\x41\165\164\x68\x6e\111\156\x73\x74\141\x6e\164", $et["\101\165\x74\x68\156\111\156\163\164\141\156\164"]);
222: $kG->setAttribute("\123\x65\x73\x73\151\157\156\111\x6e\x64\145\170", $this->sessionIndex);
223: $kG->setAttribute("\123\x65\163\163\x69\157\156\116\157\164\x4f\156\117\x72\x41\146\x74\x65\x72", $et["\123\x65\x73\163\151\x6f\x6e\x4e\x6f\x74\x4f\x6e\117\162\101\146\x74\145\162"]);
224 $I4 = $this->xml->createElement("\x73\141\x6d\154\72\101\x75\164\x68\156\103\x6f\156\x74\x65\170\x74");
225 $dS = $this->xml->createElement("\x73\x61\155\x6c\x3a\101\165\x74\x68\x6e\103\157\x6e\164\x65\170\164\x43\x6c\141\x73\x73\x52\145\146", "\165\x72\x6e\72\x6f\141\x73\x69\x73\72\156\141\x6d\145\x73\x3a\164\143\x3a\123\x41\x4d\x4c\72\62\x2e\x30\x3a\141\x63\72\x63\154\x61\163\163\x65\163\72\x50\141\x73\163\x77\157\x72\144\x50\162\157\164\x65\143\164\145\144\x54\162\x61\156\x73\x70\157\162\164");
...
232 $gk = $this->xml->createElement("\x73\x61\155\x6c\72\x41\x74\x74\x72\x69\x62\x75\164\x65\123\x74\141\x74\x65\x6d\x65\x6e\x74");
233 foreach ($this->sp_attr as $Hw) {
234: $YK = $this->buildAttribute($Hw->mo_sp_attr_name, $Hw->mo_sp_attr_value, $Hw->mo_attr_type);
235 if (is_null($YK)) {
236 goto ME;
...
243 return $gk;
244 }
245: function buildAttribute($wf, $wm, $ZV)
246 {
247 if ($wf === "\147\162\157\x75\x70\x4d\x61\160\116\141\155\145") {
...
276 return null;
277 eZ:
278: return $this->createAttributeNode($l7, $wf);
279 }
280: function createAttributeNode($l7, $wf)
281 {
282 $YK = $this->xml->createElement("\x73\141\155\154\72\x41\164\x74\x72\x69\x62\x75\164\145");
283: $YK->setAttribute("\x4e\141\155\145", $wf);
284: $YK->setAttribute("\116\141\155\145\x46\x6f\162\x6d\x61\x74", "\x75\x72\156\72\x6f\141\163\151\x73\x3a\156\x61\x6d\x65\163\x3a\x74\143\72\x53\101\x4d\114\72\x32\56\60\x3a\x61\164\x74\162\156\x61\155\x65\x2d\x66\x6f\x72\x6d\x61\x74\x3a\x75\x6e\163\160\145\x63\x69\146\x69\x65\144");
285 if (is_array($l7)) {
286 goto zH;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\LogoutRequest.php:
41 $this->certificates = array();
42 $this->validators = array();
43: $this->issueInstant = SAMLUtilities::xsDateTimeToTimestamp($eL->getAttribute("\x49\163\163\x75\x65\111\156\x73\164\141\x6e\164"));
44 $this->parseID($eL);
45 $this->checkSAMLVersion($eL);
46: if (!$eL->hasAttribute("\104\145\163\x74\151\156\x61\164\151\157\156")) {
47 goto A3;
48 }
49: $this->destination = $eL->getAttribute("\x44\145\x73\x74\x69\x6e\x61\x74\151\157\x6e");
50 A3:
51 $this->parseIssuer($eL);
52 $this->parseAndValidateSignature($eL);
53: if (!$eL->hasAttribute("\x4e\157\164\x4f\x6e\x4f\162\101\x66\164\x65\x72")) {
54 goto PL;
55 }
56: $this->notOnOrAfter = SAMLUtilities::xsDateTimeToTimestamp($eL->getAttribute("\x4e\x6f\164\117\156\117\x72\101\146\164\145\x72"));
57 PL:
58 $this->parseNameId($eL);
..
75 {
76 $Fg = $this->xml->createElementNS("\165\x72\x6e\x3a\157\141\163\151\x73\72\x6e\141\155\145\x73\x3a\164\143\72\123\101\115\114\x3a\x32\56\x30\72\x70\162\x6f\164\x6f\143\157\154", "\x73\x61\x6d\154\160\72\114\157\147\157\x75\164\122\145\x71\x75\x65\x73\164");
77: $Fg->setAttribute("\x49\104", $this->generateUniqueID(40));
78: $Fg->setAttribute("\x56\145\x72\163\x69\157\x6e", "\x32\56\60");
79: $Fg->setAttribute("\111\163\163\165\x65\111\x6e\163\164\x61\x6e\x74", str_replace("\x2b\60\60\x3a\x30\60", "\132", gmdate("\x63", time())));
80: $Fg->setAttribute("\x44\x65\163\x74\x69\x6e\x61\x74\151\157\x6e", $this->destination);
81 return $Fg;
82 }
..
95 protected function parseID($eL)
96 {
97: if ($eL->hasAttribute("\x49\x44")) {
98 goto XP;
99 }
100 throw new MissingIDException();
101 XP:
102: $this->id = $eL->getAttribute("\x49\104");
103 }
104 protected function checkSAMLVersion($eL)
105 {
106: if (!($eL->getAttribute("\126\145\x72\163\x69\157\x6e") !== "\x32\x2e\60")) {
107 goto go;
108 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\MetadataGenerator.php:
64 {
65 $cM = $this->xml->createElementNS("\x75\x72\156\72\x6f\141\163\151\x73\x3a\156\x61\x6d\x65\x73\72\x74\x63\72\123\x41\x4d\114\72\62\x2e\60\x3a\155\145\164\141\144\141\x74\x61", "\105\156\164\151\164\x79\x44\145\x73\x63\x72\151\160\164\157\x72");
66: $cM->setAttribute("\x65\156\x74\x69\x74\171\x49\104", $this->issuer);
67 return $cM;
68 }
..
70 {
71 $SO = $this->xml->createElementNS("\165\162\156\72\x6f\x61\x73\x69\163\x3a\x6e\x61\155\x65\163\x3a\x74\143\72\x53\x41\115\114\x3a\x32\x2e\60\72\155\x65\164\x61\x64\141\164\x61", "\111\104\x50\x53\x53\x4f\104\x65\163\x63\162\151\x70\x74\x6f\x72");
72: $SO->setAttribute("\x57\141\156\x74\x41\x75\x74\150\156\122\145\x71\165\x65\x73\x74\x73\123\x69\147\x6e\145\144", $this->wantAssertionSigned);
73: $SO->setAttribute("\160\x72\x6f\x74\x6f\x63\x6f\x6c\123\165\x70\160\x6f\x72\x74\x45\156\x75\x6d\x65\162\x61\x74\151\157\x6e", "\x75\162\x6e\x3a\157\141\163\151\163\72\x6e\141\155\x65\x73\72\164\x63\x3a\123\x41\x4d\114\x3a\x32\56\60\x3a\160\162\157\164\x6f\x63\x6f\x6c");
74 return $SO;
75 }
..
77 {
78 $xO = $this->xml->createElement("\x4b\145\x79\104\x65\x73\143\x72\151\x70\x74\157\162");
79: $xO->setAttribute("\165\x73\x65", "\163\x69\x67\x6e\x69\156\147");
80 $Zr = $this->generateKeyInfo();
81 $xO->appendChild($Zr);
..
107 foreach ($this->singleSignOnServiceURLs as $YR => $L3) {
108 $VY = $this->xml->createElementNS("\x75\x72\x6e\x3a\157\x61\x73\151\163\x3a\x6e\141\x6d\x65\163\x3a\164\143\72\x53\101\x4d\x4c\72\62\x2e\x30\x3a\155\x65\164\141\x64\x61\x74\x61", "\123\x69\156\147\x6c\x65\123\x69\147\156\117\x6e\x53\145\x72\166\x69\143\x65");
109: $VY->setAttribute("\x42\151\x6e\x64\151\x6e\147", $YR);
110: $VY->setAttribute("\114\x6f\x63\141\164\x69\157\156", $L3);
111 array_push($Oi, $VY);
112 Ll:
...
120 foreach ($this->singleLogoutServiceURLs as $YR => $L3) {
121 $kC = $this->xml->createElementNS("\x75\x72\156\x3a\x6f\141\x73\x69\163\x3a\x6e\141\x6d\145\x73\x3a\x74\143\x3a\123\x41\115\114\x3a\x32\x2e\60\x3a\155\145\164\141\144\x61\164\141", "\123\151\156\147\x6c\x65\x4c\157\147\x6f\165\x74\x53\145\x72\166\151\143\145");
122: $kC->setAttribute("\102\x69\156\x64\x69\x6e\x67", $YR);
123: $kC->setAttribute("\114\157\143\141\164\x69\157\x6e", $L3);
124 array_push($Su, $kC);
125 VQ:
...
131 {
132 $QM = $this->xml->createElement("\x52\x6f\x6c\x65\x44\145\x73\143\162\151\x70\164\157\x72");
133: $QM->setAttributeNS("\x68\164\164\x70\x3a\57\57\167\x77\167\56\167\63\56\157\x72\x67\x2f\x32\x30\60\60\x2f\x78\x6d\154\156\163\57", "\170\x6d\154\x6e\163\x3a\x78\x73\x69", "\x68\x74\x74\x70\x3a\57\x2f\167\167\x77\56\x77\x33\56\x6f\x72\x67\57\62\x30\x30\x31\x2f\130\x4d\114\123\143\x68\145\155\x61\x2d\151\x6e\163\x74\x61\156\x63\145");
134: $QM->setAttributeNS("\x68\164\164\x70\x3a\57\57\167\167\167\56\x77\63\56\x6f\x72\x67\x2f\x32\x30\60\x30\x2f\x78\x6d\154\156\x73\57", "\170\x6d\154\x6e\163\x3a\x66\145\x64", "\150\x74\164\160\x3a\57\57\x64\157\143\163\x2e\x6f\x61\x73\x69\x73\55\x6f\x70\145\x6e\56\x6f\162\147\x2f\x77\x73\x66\145\144\57\146\145\x64\145\x72\x61\164\x69\157\x6e\x2f\62\x30\x30\67\x30\x36");
135: $QM->setAttribute("\x53\x65\162\166\151\143\x65\104\x69\163\160\154\x61\x79\x4e\141\x6d\145", "\x6d\x69\156\151\x4f\162\x61\156\x67\145\40\111\156\143");
136: $QM->setAttribute("\x78\x73\x69\x3a\x74\171\x70\145", "\x66\145\x64\x3a\x53\x65\143\x75\162\x69\164\171\124\x6f\153\x65\x6e\123\145\162\166\x69\143\x65\x54\x79\160\145");
137: $QM->setAttribute("\x70\x72\x6f\x74\157\143\x6f\x6c\x53\x75\160\x70\x6f\162\164\x45\156\165\x6d\145\x72\141\164\151\x6f\x6e", "\150\x74\x74\x70\x3a\57\x2f\x64\x6f\143\x73\56\x6f\x61\x73\x69\x73\55\157\160\x65\156\56\x6f\162\147\x2f\x77\x73\55\x73\170\57\167\163\55\164\x72\x75\x73\x74\x2f\62\x30\60\x35\61\x32\x20\150\x74\x74\160\72\x2f\57\x73\143\150\145\155\141\x73\56\170\x6d\154\x73\x6f\x61\x70\56\157\162\147\x2f\x77\163\57\x32\x30\x30\x35\x2f\60\62\57\164\162\x75\x73\164\40\150\164\164\x70\x3a\57\x2f\144\157\x63\x73\x2e\x6f\x61\163\x69\163\55\x6f\x70\x65\156\56\157\x72\x67\x2f\167\163\146\x65\x64\x2f\x66\x65\144\145\162\141\x74\151\x6f\x6e\x2f\62\60\x30\x37\x30\x36");
138 return $QM;
139 }
...
142 $Zu = $this->xml->createElement("\x66\x65\144\72\124\x6f\153\145\156\x54\x79\x70\x65\163\x4f\x66\146\x65\x72\x65\144");
143 $LZ = $this->xml->createElement("\x66\145\x64\x3a\x54\x6f\x6b\x65\x6e\x54\171\x70\145");
144: $LZ->setAttribute("\125\162\x69", "\x75\x72\x6e\x3a\157\141\163\x69\163\72\x6e\x61\155\x65\163\72\x74\143\x3a\123\101\115\114\x3a\61\56\x30\x3a\x61\x73\163\145\x72\x74\151\157\x6e");
145 $Zu->appendChild($LZ);
146 return $Zu;
...
158 $AP = $this->xml->createElementNS("\x75\x72\156\72\157\x61\x73\151\x73\72\156\x61\x6d\x65\163\72\x74\143\x3a\x53\101\x4d\114\72\x32\56\x30\x3a\155\145\x74\141\144\x61\x74\141", "\x6d\144\x3a\x4f\x72\x67\141\156\x69\172\141\x74\x69\x6f\156");
159 $Pk = $this->xml->createElementNS("\x75\162\156\x3a\x6f\x61\x73\151\x73\72\156\141\155\145\163\x3a\x74\143\x3a\123\101\115\x4c\72\x32\x2e\x30\x3a\155\145\x74\x61\x64\141\164\x61", "\155\x64\x3a\x4f\x72\147\x61\x6e\151\172\141\164\151\x6f\156\116\x61\x6d\x65", "\x6d\x69\156\151\117\162\x61\x6e\x67\145");
160: $Pk->setAttribute("\170\155\x6c\72\x6c\x61\156\147", "\x65\x6e\55\x55\123");
161 $Nk = $this->xml->createElementNS("\165\x72\156\72\157\x61\x73\151\163\72\156\141\x6d\145\x73\x3a\164\x63\x3a\123\101\x4d\x4c\x3a\x32\x2e\x30\x3a\x6d\x65\x74\141\144\x61\x74\x61", "\155\x64\x3a\117\162\x67\x61\x6e\x69\x7a\141\164\x69\157\x6e\104\x69\x73\160\x6c\141\x79\116\141\155\x65", "\x6d\x69\156\x69\117\x72\x61\x6e\x67\x65");
162: $Nk->setAttribute("\170\155\154\72\x6c\x61\156\147", "\145\x6e\x2d\x55\123");
163 $RB = $this->xml->createElementNS("\165\162\156\x3a\x6f\141\x73\151\x73\72\x6e\x61\155\x65\x73\72\x74\143\72\123\101\115\114\72\x32\56\x30\72\155\145\164\141\x64\141\x74\141", "\x6d\144\72\117\162\147\x61\156\x69\172\141\164\x69\x6f\x6e\x55\x52\114", "\150\164\x74\160\x73\x3a\x2f\57\x6d\x69\x6e\151\x6f\162\x61\x6e\147\x65\x2e\x63\x6f\x6d");
164: $RB->setAttribute("\x78\x6d\x6c\x3a\x6c\x61\x6e\147", "\x65\x6e\x2d\125\123");
165 $AP->appendChild($Pk);
166 $AP->appendChild($Nk);
...
171 {
172 $ry = $this->xml->createElementNS("\165\x72\x6e\72\157\141\x73\151\x73\x3a\x6e\x61\155\x65\163\72\x74\x63\x3a\123\101\x4d\114\72\x32\56\60\x3a\x6d\x65\164\x61\144\141\164\x61", "\155\x64\72\x43\157\156\x74\x61\143\x74\x50\x65\162\x73\157\x6e");
173: $ry->setAttribute("\143\x6f\156\x74\141\143\x74\124\x79\x70\145", "\x74\x65\143\150\x6e\151\143\141\154");
174 $Pk = $this->xml->createElementNS("\x75\162\x6e\72\x6f\x61\x73\151\x73\72\x6e\141\x6d\145\163\x3a\x74\x63\x3a\123\101\x4d\x4c\72\62\56\60\x3a\x6d\x65\x74\x61\x64\141\164\x61", "\155\144\72\107\151\x76\145\x6e\x4e\141\155\x65", "\x6d\151\156\151\x4f\x72\x61\156\x67\145");
175 $xt = $this->xml->createElementNS("\x75\162\x6e\x3a\x6f\141\x73\x69\163\72\x6e\141\155\145\x73\72\164\143\x3a\123\x41\x4d\x4c\72\62\x2e\60\72\155\x65\164\x61\x64\x61\164\141", "\155\x64\72\x53\x75\162\116\x61\155\145", "\x53\x75\x70\160\x6f\162\x74");
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\MetadataReader.php:
57 $this->encryptionCertificate = array();
58 $this->nameID = "\x75\162\x6e\x3a\157\141\x73\x69\x73\72\156\x61\155\x65\x73\x3a\x74\143\x3a\123\101\115\x4c\72\61\x2e\x31\x3a\x6e\x61\x6d\145\151\144\x2d\146\157\x72\x6d\x61\x74\x3a\x65\x6d\x61\151\154\x41\144\x64\x72\145\163\163";
59: if (!$eL->hasAttribute("\145\156\x74\x69\164\x79\111\x44")) {
60 goto fP;
61 }
62: $this->entityID = $eL->getAttribute("\145\x6e\x74\x69\164\x79\111\104");
63 fP:
64 $y7 = SAMLUtilities::xpQuery($eL, "\x2e\x2f\163\x61\155\x6c\x5f\x6d\x65\164\x61\x64\x61\164\141\x3a\123\120\123\x53\x4f\x44\145\163\x63\162\151\x70\x74\157\x72");
..
76 throw new InvalidSPSSODescriptorException("\115\111\123\123\x49\116\x47\137\x53\x50");
77 BP:
78: if (!$y7[0]->hasAttribute("\x41\x75\164\x68\x6e\122\x65\x71\165\x65\x73\164\163\123\x69\x67\x6e\x65\144")) {
79 goto gB;
80 }
81: $this->signedRequest = $y7[0]->getAttribute("\x41\x75\164\150\x6e\x52\145\x71\165\x65\x73\164\163\x53\x69\x67\x6e\x65\144");
82 gB:
83: if (!$y7[0]->hasAttribute("\127\x61\156\x74\x41\x73\163\145\162\164\x69\x6f\156\x73\x53\x69\x67\156\x65\x64")) {
84 goto z3;
85 }
86: $this->assertionSigned = $y7[0]->getAttribute("\127\x61\156\x74\x41\x73\163\x65\x72\164\x69\x6f\156\163\x53\151\147\156\x65\144");
87 z3:
88 $Ao = $y7[0];
..
102 $FK = SAMLUtilities::xpQuery($eL, "\56\57\155\144\165\151\x3a\125\111\111\156\x66\157\x2f\x6d\144\165\151\x3a\x44\151\x73\160\x6c\141\171\x4e\141\x6d\x65");
103 foreach ($FK as $Pk) {
104: if (!($Pk->hasAttribute("\170\x6d\154\72\154\x61\x6e\147") && $Pk->getAttribute("\170\155\154\72\154\x61\156\x67") == "\x65\156")) {
105 goto gx;
106 }
...
115 $oM = SAMLUtilities::xpQuery($eL, "\x2e\57\163\x61\x6d\154\137\155\145\x74\141\144\x61\x74\x61\72\x53\x69\x6e\x67\x6c\x65\123\151\147\x6e\117\156\x53\145\x72\x76\151\143\145");
116 foreach ($oM as $I5) {
117: $YR = str_replace("\165\162\x6e\x3a\157\x61\x73\x69\163\72\156\141\x6d\x65\x73\72\x74\143\72\123\101\x4d\114\72\x32\x2e\x30\x3a\x62\x69\x6e\x64\151\156\x67\163\72", '', $I5->getAttribute("\102\x69\x6e\x64\x69\156\147"));
118: $this->loginDetails = array_merge($this->loginDetails, array($YR => $I5->getAttribute("\114\157\143\141\x74\151\157\156")));
119 Qg:
120 }
...
127 goto Z5;
128 }
129: $this->sloBindingType = str_replace("\x75\162\x6e\x3a\x6f\x61\163\x69\163\72\x6e\x61\155\145\x73\72\164\143\x3a\x53\101\115\114\72\62\x2e\60\x3a\x62\x69\156\144\151\156\147\163\x3a", '', $kw[0]->getAttribute("\x42\x69\x6e\144\x69\156\147"));
130 Z5:
131 foreach ($kw as $wu) {
132: $YR = str_replace("\165\x72\156\x3a\x6f\x61\163\x69\x73\x3a\156\141\155\145\x73\x3a\164\x63\72\x53\101\x4d\114\x3a\62\x2e\60\x3a\142\151\x6e\x64\151\156\147\163\x3a", '', $wu->getAttribute("\102\x69\156\144\151\x6e\147"));
133: $this->logoutDetails = array_merge($this->logoutDetails, array($YR => $wu->getAttribute("\x4c\x6f\143\x61\x74\x69\x6f\156")));
134 Jy:
135 }
...
139 {
140 foreach (SAMLUtilities::xpQuery($eL, "\56\x2f\x73\141\x6d\154\x5f\155\145\x74\x61\144\x61\164\141\x3a\x4b\145\x79\x44\145\163\143\162\x69\x70\164\x6f\162") as $b2) {
141: if ($b2->hasAttribute("\165\x73\x65")) {
142 goto E7;
143 }
...
145 goto Z_;
146 E7:
147: if ($b2->getAttribute("\165\163\x65") == "\145\156\x63\162\x79\x70\x74\x69\157\x6e") {
148 goto Zd;
149 }
...
183 {
184 $GQ = SAMLUtilities::xpQuery($eL, "\x2e\57\163\141\x6d\x6c\x5f\x6d\x65\164\141\x64\x61\164\x61\x3a\x41\163\163\x65\162\x74\151\x6f\156\x43\x6f\x6e\x73\165\x6d\x65\162\123\x65\x72\166\x69\143\145");
185: if (!$GQ[0]->hasAttribute("\114\x6f\143\x61\164\151\x6f\156")) {
186 goto WO;
187 }
188: $this->acsUrl = $GQ[0]->getAttribute("\x4c\157\143\x61\164\151\157\156");
189 WO:
190 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\utilities\SAMLUtilities.php:
121 $uX = array("\126\x61\154\x75\x65" => trim($eL->textContent));
122 foreach (array("\x4e\x61\155\x65\121\x75\141\154\151\x66\x69\145\x72", "\123\x50\116\x61\155\145\121\x75\141\x6c\151\x66\151\x65\x72", "\x46\157\x72\155\x61\x74") as $Hw) {
123: if (!$eL->hasAttribute($Hw)) {
124 goto je;
125 }
126: $uX[$Hw] = $eL->getAttribute($Hw);
127 je:
128 bx:
...
246 lv:
247 $BI = $BI[0];
248: if ($BI->hasAttribute("\x41\x6c\x67\157\x72\151\164\x68\x6d")) {
249 goto iK;
250 }
...
252 exit;
253 iK:
254: $B5 = $BI->getAttribute("\101\154\147\157\162\x69\x74\x68\x6d");
255 if (!($xO->type === XMLSecurityKey::RSA_SHA256 && $B5 !== $xO->type)) {
256 goto Yi;
...
344 public static function parseBoolean(\DOMElement $D_, $K8, $nY = null)
345 {
346: if ($D_->hasAttribute($K8)) {
347 goto w0;
348 }
349 return $nY;
350 w0:
351: $l7 = $D_->getAttribute($K8);
352 switch (strtolower($l7)) {
353 case "\60":
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\wsfed\GenerateWsFedResponse.php:
110 {
111 $pD = $this->xml->createElementNS("\165\162\156\72\x6f\x61\x73\151\x73\72\x6e\x61\155\145\163\x3a\x74\x63\x3a\x53\101\115\114\72\61\56\60\x3a\141\163\163\x65\162\164\x69\157\156", "\163\x61\x6d\154\72\101\x73\163\x65\x72\x74\151\157\156");
112: $pD->setAttribute("\115\x61\152\x6f\x72\126\145\162\163\x69\157\x6e", "\61");
113: $pD->setAttribute("\x4d\151\156\157\162\x56\x65\162\163\x69\157\156", "\x31");
114: $pD->setAttribute("\101\x73\163\145\x72\x74\151\157\156\x49\x44", $et["\101\163\x73\145\162\x74\111\104"]);
115: $pD->setAttribute("\111\163\163\x75\145\x72", $this->issuer);
116: $pD->setAttribute("\x49\163\x73\165\x65\111\x6e\x73\x74\141\x6e\164", $et["\x49\x73\x73\x75\145\x49\x6e\163\164\141\156\164"]);
117 $K3 = $this->createSamlConditions($et);
118 $pD->appendChild($K3);
...
120 goto u9;
121 }
122: $gk = $this->createAttributeStatement($et);
123 $pD->appendChild($gk);
124 u9:
...
148 {
149 $Fg = $this->xml->createElement("\x64\163\72\x43\141\x6e\x6f\156\151\x63\141\154\151\x7a\141\164\x69\x6f\156\115\145\x74\x68\x6f\x64");
150: $Fg->setAttribute("\x41\154\147\157\162\x69\x74\x68\155", "\150\x74\164\x70\x3a\57\57\x77\x77\167\56\x77\63\56\x6f\162\x67\57\x32\60\x30\x31\x2f\61\x30\57\170\155\x6c\x2d\145\170\x63\x2d\143\61\64\156\43");
151 return $Fg;
152 }
...
154 {
155 $Fg = $this->xml->createElement("\163\x61\155\x6c\72\x41\165\164\x68\x65\x6e\x74\151\x63\x61\x74\151\x6f\156\x53\x74\x61\164\145\x6d\x65\156\x74");
156: $Fg->setAttribute("\101\165\x74\150\145\156\164\151\143\141\164\151\x6f\x6e\x4d\x65\164\150\157\144", "\165\x72\x6e\72\x6f\x61\x73\151\x73\x3a\156\x61\155\x65\163\72\164\x63\72\x53\101\115\x4c\72\x32\56\60\x3a\141\143\x3a\143\154\141\x73\x73\x65\x73\x3a\120\x61\x73\x73\x77\157\162\x64\x50\x72\x6f\164\145\x63\164\145\144\124\162\x61\x6e\163\x70\x6f\162\164");
157: $Fg->setAttribute("\101\165\x74\150\x65\x6e\x74\151\143\141\x74\x69\157\156\x49\x6e\x73\164\141\x6e\x74", $et["\x41\x75\164\x68\156\x49\x6e\x73\164\141\x6e\164"]);
158 $Xa = $this->createSubject();
159 $this->subject = $Xa;
...
161 return $Fg;
162 }
163: function createAttributeStatement($et)
164 {
165 $gk = $this->xml->createElement("\x73\x61\155\x6c\x3a\101\x74\x74\162\x69\142\x75\164\145\x53\x74\x61\x74\145\x6d\145\156\164");
...
168 $gk->appendChild($x4);
169 foreach ($this->sp_attr as $Hw) {
170: $YK = $this->buildAttribute($et, $Hw->mo_sp_attr_name, $Hw->mo_sp_attr_value, $Hw->mo_attr_type);
171 if (is_null($YK)) {
172 goto xe;
...
179 return $gk;
180 }
181: function buildAttribute($et, $wf, $wm, $ZV)
182 {
183 if ($wf === "\147\x72\x6f\x75\x70\115\141\160\x4e\x61\155\x65") {
...
212 return null;
213 E4:
214: return $this->createAttributeNode($l7, $wf);
215 }
216: function createAttributeNode($l7, $wf)
217 {
218 $YK = $this->xml->createElement("\x73\x61\x6d\154\72\x41\164\x74\x72\x69\142\165\x74\145");
219: $YK->setAttribute("\x41\x74\x74\x72\x69\x62\x75\164\145\116\141\155\x65", $wf);
220: $YK->setAttribute("\101\164\164\162\x69\x62\x75\164\x65\116\x61\x6d\145\x73\160\141\143\145", "\x68\x74\164\160\x3a\x2f\x2f\163\143\150\145\155\141\x73\56\x78\155\x6c\163\x6f\x61\x70\56\x6f\x72\x67\57\143\154\x61\151\x6d\x73");
221 if (is_array($l7)) {
222 goto Bx;
...
264 $l7 = apply_filters("\x67\145\x6e\145\162\x61\x74\x65\137\x77\x73\146\145\144\x5f\141\164\164\x72\151\x62\x75\x74\x65\x5f\x76\x61\154\165\x65", $l7, $this->current_user, "\x4e\x61\155\145\x49\x44");
265 $Fg = $this->xml->createElement("\x73\141\155\154\72\116\141\155\x65\x49\x64\145\156\164\x69\146\x69\x65\x72", htmlspecialchars($l7));
266: $Fg->setAttribute("\x46\157\162\155\141\164", "\x75\162\156\x3a\157\x61\x73\151\x73\72\x6e\x61\155\x65\163\x3a\x74\143\x3a\123\x41\x4d\x4c\x3a" . $this->mo_idp_nameid_format);
267 return $Fg;
268 }
...
270 {
271 $Fg = $this->xml->createElement("\163\141\x6d\x6c\x3a\103\x6f\x6e\144\x69\x74\x69\157\x6e\x73");
272: $Fg->setAttribute("\x4e\x6f\x74\102\x65\x66\x6f\162\x65", $et["\x4e\157\x74\102\145\x66\x6f\162\145"]);
273: $Fg->setAttribute("\116\x6f\164\117\156\117\x72\x41\x66\x74\145\x72", $et["\116\x6f\164\x4f\156\117\162\101\x66\x74\x65\x72"]);
274 $Xa = $this->createSamlAudience();
275 $Fg->appendChild($Xa);
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\wsfed\WsFedRequest.php:
4 namespace IDP\Helper\WSFED;
5
6: use IDP\Exception\MissingWaAttributeException;
7: use IDP\Exception\MissingWtRealmAttributeException;
8 use IDP\Helper\Constants\MoIDPConstants;
9 use IDP\Helper\Utilities\MoIDPUtility;
..
39 goto rS;
40 }
41: throw new MissingWaAttributeException();
42 rS:
43 if (!MoIDPUtility::isBlank($this->wtrealm)) {
44 goto ge;
45 }
46: throw new MissingWtRealmAttributeException();
47 ge:
48 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\views\common-elements.php:
84 goto qx;
85 pW:
86: $Ko = $dbIDPQueries->get_sp_attributes($di->id);
87: $qY = $dbIDPQueries->get_sp_role_attribute($di->id);
88 if (isset($Ko) && !empty($Ko)) {
89 goto VH;
..
120 global $dbIDPQueries;
121 $current_user = wp_get_current_user();
122: $O9 = $dbIDPQueries->getDistinctMetaAttributes();
123 foreach ($O9 as $xO => $l7) {
124 $ID[$l7->meta_key] = $l7->meta_key;
195 matches across 20 files
Searching 133 files for "apply_filters"
\wp-content\plugins\miniorange-wp-saml-idp-premium\handler\ProcessRequestHandler.php:
68 setcookie("\x63\154\x69\x65\156\x74\122\145\x71\x75\145\163\x74\x49\144", $aD->getClientRequestId(), time() + 21600, "\x2f");
69 $L3 = wp_login_url();
70: $L3 = apply_filters("\x6d\157\137\x69\x64\x70\137\143\x75\163\x74\x6f\155\137\154\x6f\147\x69\x6e\137\165\x72\154", $L3);
71 wp_safe_redirect($L3);
72 exit;
..
86 setcookie("\x72\145\x71\x75\x65\163\164\x49\x44", $aD->getRequestID(), time() + 21600, "\57");
87 $L3 = wp_login_url();
88: $L3 = apply_filters("\x6d\157\x5f\x69\144\x70\x5f\x63\x75\163\x74\x6f\155\x5f\x6c\157\x67\x69\x6e\137\165\x72\154", $L3);
89 wp_safe_redirect($L3);
90 exit;
..
103 setcookie("\x72\145\x74\x75\162\x6e\x5f\164\x6f\137\x75\x72\x6c", $Hi, time() + 21600, "\x2f");
104 $L3 = wp_login_url();
105: $L3 = apply_filters("\155\157\137\x69\x64\160\x5f\143\165\163\164\x6f\155\x5f\154\157\147\151\156\137\x75\162\154", $L3);
106 wp_safe_redirect($L3);
107 exit;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\jwt\GenerateJwtToken.php:
107 $l7 = get_user_meta($this->current_user->ID, $wm, TRUE);
108 zY:
109: $l7 = apply_filters("\147\145\156\145\162\x61\164\x65\137\x6a\x77\x74\x5f\x61\x74\x74\162\x69\142\x75\x74\145\x5f\x76\x61\x6c\x75\x65", $l7, $this->current_user, $wf, $wm);
110: $ft = [$wf => apply_filters("\x6d\157\x64\x69\x66\x79\137\x73\141\x6d\154\x5f\141\x74\x74\x72\137\166\x61\x6c\165\x65", $l7)];
111 return $ft;
112 }
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\saml2\GenerateResponse.php:
175 $gt = !empty($this->mo_idp_nameid_attr) && $this->mo_idp_nameid_attr != "\145\x6d\141\x69\154\x41\144\144\162\145\163\x73" ? $this->mo_idp_nameid_attr : "\165\163\145\162\137\x65\155\141\151\x6c";
176 $l7 = MoIDPUtility::isBlank($this->current_user->{$gt}) ? get_user_meta($this->current_user->ID, $gt, true) : $this->current_user->{$gt};
177: $l7 = apply_filters("\x67\145\x6e\x65\x72\x61\164\145\x5f\x73\x61\x6d\x6c\x5f\x61\x74\x74\x72\151\142\x75\164\145\x5f\166\x61\154\x75\x65", $l7, $this->current_user, "\x4e\141\155\x65\x49\104", "\116\x61\155\x65\111\x44");
178 $tn = $this->xml->createElement("\163\x61\155\x6c\72\116\x61\x6d\145\x49\104", htmlspecialchars($l7));
179 $tn->setAttribute("\x46\x6f\162\x6d\141\164", "\x75\162\156\x3a\x6f\x61\x73\x69\163\72\156\x61\155\145\x73\72\x74\143\72\123\x41\x4d\114\x3a" . $this->mo_idp_nameid_format);
...
270 $l7 = $this->current_user->roles;
271 S6:
272: $l7 = apply_filters("\147\x65\156\x65\x72\141\x74\145\137\163\x61\155\154\x5f\141\164\x74\162\x69\x62\x75\164\x65\137\x76\x61\154\165\x65", $l7, $this->current_user, $wf, $wm);
273 if (!empty($l7)) {
274 goto eZ;
...
286 goto zH;
287 }
288: $l7 = apply_filters("\155\157\x64\151\146\x79\x5f\x73\141\155\154\x5f\x61\x74\164\x72\x5f\166\141\x6c\165\x65", $l7);
289 $zV = $this->xml->createElement("\x73\x61\155\154\x3a\x41\x74\164\162\x69\142\165\164\x65\126\141\154\x75\145", htmlspecialchars($l7));
290 $YK->appendChild($zV);
...
292 zH:
293 foreach ($l7 as $xO => $tL) {
294: $tL = apply_filters("\155\157\x64\x69\x66\x79\x5f\x73\141\155\154\x5f\x61\x74\x74\162\137\166\x61\x6c\x75\x65", $tL);
295 $zV = $this->xml->createElement("\163\141\x6d\x6c\72\x41\x74\164\x72\151\x62\165\164\145\x56\x61\x6c\x75\x65", htmlspecialchars($tL));
296 $YK->appendChild($zV);
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\utilities\MoIDPUtility.php:
60 goto kB;
61 }
62: apply_filters("\167\160\160\x62\x5f\x63\x75\162\160\141\147\x65\165\x72\x6c", $T9);
63 kB:
64 return $T9;
\wp-content\plugins\miniorange-wp-saml-idp-premium\helper\wsfed\GenerateWsFedResponse.php:
206 $l7 = get_user_meta($this->current_user->ID, $wm, TRUE);
207 mM:
208: $l7 = apply_filters("\147\145\x6e\x65\x72\141\x74\x65\x5f\167\x73\x66\x65\144\137\x61\164\164\x72\x69\142\x75\x74\145\x5f\x76\141\x6c\x75\x65", $l7, $this->current_user, $wf);
209 if (!empty($l7)) {
210 goto E4;
...
222 goto Bx;
223 }
224: $l7 = apply_filters("\155\x6f\x64\x69\x66\171\137\167\163\x66\145\x64\x5f\x61\164\x74\x72\x5f\166\x61\154\x75\x65", $l7);
225 $zV = $this->xml->createElement("\163\x61\155\154\72\101\x74\164\162\x69\142\165\164\145\126\x61\154\165\145", htmlspecialchars($l7));
226 $YK->appendChild($zV);
...
228 Bx:
229 foreach ($l7 as $xO => $tL) {
230: $tL = apply_filters("\x6d\x6f\144\151\146\171\x5f\x77\163\146\x65\x64\137\x61\x74\164\162\137\166\141\x6c\165\145", $tL);
231 $zV = $this->xml->createElement("\163\x61\x6d\x6c\72\x41\x74\164\x72\x69\142\x75\164\145\126\x61\x6c\x75\x65", htmlspecialchars($tL));
232 $YK->appendChild($zV);
...
262 $gt = !empty($this->mo_idp_nameid_attr) && $this->mo_idp_nameid_attr != "\x65\155\141\x69\154\x41\x64\x64\162\145\163\x73" ? $this->mo_idp_nameid_attr : "\165\163\x65\x72\x5f\145\155\141\151\154";
263 $l7 = MoIDPUtility::isBlank($this->current_user->{$gt}) ? get_user_meta($this->current_user->ID, $gt, true) : $this->current_user->{$gt};
264: $l7 = apply_filters("\x67\145\x6e\145\162\x61\x74\x65\137\x77\x73\146\145\144\x5f\141\164\164\x72\151\x62\x75\x74\x65\x5f\x76\x61\154\165\x65", $l7, $this->current_user, "\x4e\x61\155\145\x49\x44");
265 $Fg = $this->xml->createElement("\x73\141\155\154\72\116\141\155\x65\x49\x64\145\156\164\x69\146\x69\x65\x72", htmlspecialchars($l7));
266 $Fg->setAttribute("\x46\157\162\155\141\164", "\x75\162\156\x3a\157\x61\x73\151\x73\72\x6e\x61\155\x65\163\x3a\x74\143\x3a\123\x41\x4d\x4c\x3a" . $this->mo_idp_nameid_format);
\wp-content\plugins\miniorange-wp-saml-idp-premium\views\common-elements.php:
131 }
132 tr:
133: $ID = apply_filters("\165\163\x65\x72\137\x69\x6e\x66\157\137\x61\x74\x74\x72\x5f\154\x69\x73\164", $ID);
134 return $ID;
135 }
Function Calls
None |
Stats
MD5 | 3c0759877fa6fdc5302c8a0ecdf89187 |
Eval Count | 0 |
Decode Time | 77 ms |