---
title: "Five CVEs in a Job Portal for Schools: IDOR and Stored XSS in GlobalEduca"
author: "Bertrand Lorente Yañez"
site: "Berlokia (https://berlokia.com)"
url: "https://berlokia.com/blog/cves-globaleduca-portal-empleo?lang=en"
published: "2026-11-27T16:47:51+00:00"
updated: "2026-11-27T16:47:51+00:00"
language: "en"
category: "infosec"
tags: "CVE, IDOR, Stored XSS, File Upload, Pentesting Web, INCIBE"
summary: "Five CVEs (CVE-2026-124828 to CVE-2026-124832) in GlobalEduca's job portal: an IDOR that let you download other applicants' resumes, three stored XSS inside the resume itself and a PDF upload with JavaScript inside. All fixed and published by INCIBE."
---

# Five CVEs in a Job Portal for Schools: IDOR and Stored XSS in GlobalEduca

On November 24, INCIBE published notice [INCIBE-2026-944](https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-globaleducas-job-portal) with five vulnerabilities I found in GlobalEduca's job portal. That makes five CVEs, CVE-2026-124828 through CVE-2026-124832, on top of [the two from H6Web](https://berlokia.com/blog/mis-primeros-cves-hackeando-la-semana-santa) last year.

GlobalEduca is the software that schools and educational foundations in Spain use to run their job boards. You sign up, upload your resume, your degrees and your cover letter, and the school reviews applications on its side. So, a place full of resumes, with everything a resume carries: name, photo, phone number, address and where you have worked for the last ten years.

At the end of February I spent some time looking at it with a regular applicant account, the kind anyone can create for free in a minute. Between the 27th and the 28th, five bugs came out.

Everything described here is fixed. The vendor deployed the patches to production on October 16, 2026, which is why I can write about it now.

## Quick summary

| CVE | What it is | CVSS 4.0 | CWE |
|---|---|---|---|
| **CVE-2026-124828** | IDOR: download other applicants' attachments | 7.1 (high) | CWE-639 |
| **CVE-2026-124829** | Stored XSS in the cover letter | 6.3 (medium) | CWE-79 |
| **CVE-2026-124831** | Stored XSS in work experience | 6.3 (medium) | CWE-79 |
| **CVE-2026-124832** | Stored XSS in "other activities" | 6.3 (medium) | CWE-79 |
| **CVE-2026-124830** | Upload of a PDF with JavaScript inside | 6.3 (medium) | CWE-434 |

---

## CVE-2026-124828: someone else's resume, one number away

When you upload a file to the portal, you later see it at a URL like this:

```text
/adjuntos/18229?persona_id=XXXXX
```

Two things stand out right away. The attachment ID is a number that goes up one at a time, and there is a `persona_id` that looks like it is there to check who the file belongs to.

It was not checking anything. I changed the `persona_id`, then removed it completely, and the file kept downloading just the same. So I tried a number close to mine:

```http
GET /adjuntos/18220 HTTP/2
Host: empleo.example.es
Cookie: <my applicant account session>
```

And the server gave me another person's resume. With their photo, their name, their contact details and their whole work history.

![The browser's PDF viewer showing another applicant's resume at /adjuntos/18220, pixelated](https://berlokia.com/uploads/posts/cves-globaleduca-portal-empleo/01-idor-cv-ajeno.png)

Another ID, another person:

![A second resume belonging to someone else served at /adjuntos/18224, pixelated](https://berlokia.com/uploads/posts/cves-globaleduca-portal-empleo/01b-idor-cv-ajeno-2.png)

*The screenshots are pixelated on purpose and the school's domain is covered. These are real people who were just trying to find a job.*

The endpoint only checked that you had a session, not that the attachment was yours. And since sign-up is open and free, "having a session" here means "anyone with an email address".

The IDs were somewhere past eighteen thousand. With a four-line loop, someone could have walked away with every attachment on the portal: resumes, degrees, certificates. You do not need any of that to prove the bug, a couple of neighbouring IDs make it clear enough.

### How to fix it

- Check on the server that the attachment belongs to the user in the session, or that whoever is asking is school staff allowed to see it.
- Replacing sequential IDs with ones that cannot be guessed (UUIDs) helps, but it is an extra. What fixes the bug is the check.
- Go back through the logs for that endpoint, in case someone got there first.

---

## Three stored XSS inside the resume itself

The resume form has several free-text fields. Three of them stored the HTML exactly as you sent it and rendered it exactly like that later.

### CVE-2026-124829: the cover letter

The field is `carta_presentacion[contenido]`. The request, without the parts that add nothing:

```http
POST /personas/{persona_id}/cvs/{cv_id}/carta_presentaciones HTTP/2
Host: empleo.example.es
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryxFRwjWwd19Q8z3yz

------WebKitFormBoundaryxFRwjWwd19Q8z3yz
Content-Disposition: form-data; name="carta_presentacion[contenido]"

<iframe src="javascript:alert(1)"
------WebKitFormBoundaryxFRwjWwd19Q8z3yz--
```

I do not even close the tag. The browser takes care of that.

![The request in Burp with the payload in the cover letter content](https://berlokia.com/uploads/posts/cves-globaleduca-portal-empleo/02-xss-carta-burp.png)

When the letter is opened:

![alert(1) firing when the cover letter loads](https://berlokia.com/uploads/posts/cves-globaleduca-portal-empleo/03-xss-carta-alert.png)

### CVE-2026-124831: work experience

Same problem in `experiencia_laboral[descripcion]`. Here I used a link with `onclick`, which needs a click but goes through just as cleanly:

```http
POST /personas/{persona_id}/experiencias_laborales HTTP/2
Host: empleo.example.es
Content-Type: application/x-www-form-urlencoded

utf8=%E2%9C%93&authenticity_token=<TOKEN>&experiencia_laboral%5Bempresa%5D=Test&experiencia_laboral%5Bpuesto%5D=Monitor_extraescolares_comedor_biblioteca&experiencia_laboral%5Bfecha_inicio%5D=28%2F02%2F2026&experiencia_laboral%5Bfecha_fin%5D=&experiencia_laboral%5Bdescripcion%5D=%3ca%20onclick%3dalert(1)%3etest%3c%2fa%3e&commit=Guardar
```

The `descripcion` value, decoded, is `<a onclick=alert(1)>test</a>`.

![alert(1) after clicking the description of a work experience entry](https://berlokia.com/uploads/posts/cves-globaleduca-portal-empleo/06-xss-experiencia-alert.png)

### CVE-2026-124832: other activities

And the same thing again in `actividad[descripcion]`, with the same payload:

```http
POST /personas/{persona_id}/cvs/{cv_id}/actividades HTTP/2
Host: empleo.example.es
Content-Type: application/x-www-form-urlencoded

utf8=%E2%9C%93&authenticity_token=<TOKEN>&actividad%5Bnombre%5D=a_solidarias_voluntariado&actividad%5Bdescripcion%5D=%3ca%20onclick%3dalert(1)%3etest%3c%2fa%3e&commit=Guardar
```

![alert(1) in the other activities section](https://berlokia.com/uploads/posts/cves-globaleduca-portal-empleo/07-xss-actividades-alert.png)

### Why an alert(1) matters

An `alert(1)` hurts nobody, it is only proof that the browser runs what I typed. What matters is who opens those fields.

A resume is not read by the person who wrote it. It is read by the person at the school who reviews applications, with their session and their permissions. A stored XSS in a resume is a script sitting there waiting for exactly that person.

The session cookie was `HttpOnly`, so stealing it directly is off the table. The script does not care: it runs inside the victim's browser and can send requests as them, see what they see and click what they can click.

### How to fix it

- Escape the output. Everything an applicant types is text, not HTML.
- If a field needs formatting (some had an editor with bold and lists), sanitize on the server with an allowlist of permitted tags.
- A strict Content-Security-Policy, so that a bug like this does not end in execution.
- Run the same sanitizing over what is already stored in the database.

---

## CVE-2026-124830: a language certificate with JavaScript inside

In the languages section you can attach your certificate as a PDF. The server only looked at the MIME type declared in the request, not at what was inside the file. So I uploaded this as `cert.pdf`:

```http
POST /personas/{persona_id}/idiomas HTTP/2
Host: empleo.example.es
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryvgxDYtgURBYOn2tC

------WebKitFormBoundaryvgxDYtgURBYOn2tC
Content-Disposition: form-data; name="idioma[adjunto_attributes][adjunto]"; filename="cert.pdf"
Content-Type: application/pdf

%PDF-1.7
1 0 obj
<</Pages 1 0 R /OpenAction 2 0 R>>
2 0 obj
<</S /JavaScript /JS (app.alert(1))>>
trailer
<</Root 1 0 R>>
------WebKitFormBoundaryvgxDYtgURBYOn2tC--
```

Seven lines. It is not even a well-formed PDF, but the browser's viewer accepts it.

![The request in Burp uploading the PDF with /OpenAction and JavaScript](https://berlokia.com/uploads/posts/cves-globaleduca-portal-empleo/04-pdf-burp.png)

The other half of the problem is how the file is served afterwards. The same `/adjuntos/{id}` from the IDOR returned it like this:

```http
HTTP/2 200 OK
Content-Type: application/pdf
Content-Disposition: inline; filename="cert.pdf"
```

That `inline` tells the browser to open it instead of downloading it. And when it opens:

![alert(1) firing when the certificate opens in the PDF viewer](https://berlokia.com/uploads/posts/cves-globaleduca-portal-empleo/05-pdf-alert.png)

I want to be honest about the scope here. JavaScript in a PDF runs inside the viewer, not in the page, so this is not an XSS like the three above, and what it can do depends a lot on the viewer the victim has. That is why INCIBE classified it as a dangerous file upload (CWE-434) and not as XSS.

Even so, a portal where someone spends the day opening PDFs from strangers should not accept PDFs that do things on their own when opened.

### How to fix it

- Validate the PDF content on upload and reject files that carry `/JavaScript`, `/JS`, `/OpenAction`, `/AA` or `/Launch`.
- Serve user files with `Content-Disposition: attachment`.
- Serve them from a separate domain, so nothing a user uploads shares an origin with the application.

---

## What they have in common

The five bugs are the same mistake seen from different places: the server trusted what the applicant sent. It trusted the number in the URL, the text in the forms and the file type the request claimed.

On a job portal that weighs more than usual, for two reasons. First, signing up is free and asks for nothing, so the "authenticated user" in the CVEs is anyone. Second, the content that anyone uploads is made to be opened by another person with more permissions. That is literally what the application is for.

## Timeline

| Date | What happened |
|---|---|
| 2026-02-27 | I find the IDOR |
| 2026-02-28 | I find the three XSS and the PDF upload |
| 2026-10-16 | The vendor deploys the fixes to production |
| 2026-11-24 | INCIBE publishes the notice and the five CVEs |

I reported everything through INCIBE-CERT, who handled the coordination with the vendor. Thanks to them for the work and to GlobalEduca for fixing it.

- [INCIBE-CERT notice (English)](https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-globaleducas-job-portal)
- [Aviso de INCIBE-CERT (Spanish)](https://www.incibe.es/incibe-cert/alerta-temprana/avisos/multiples-vulnerabilidades-en-el-portal-de-empleo-de-globaleduca)

That makes seven. On to the next one 🚀

*Note: all testing was done with my own applicant account. The screenshots are redacted and no third-party data is published.*
