> ## Documentation Index
> Fetch the complete documentation index at: https://rootea.es/llms.txt
> Use this file to discover all available pages before exploring further.

# CORS vulnerability with basic origin reflection

> PortSwigger Web Security Academy lab: CORS vulnerability with basic origin reflection. Topic: CORS.

# CORS vulnerability with basic origin reflection

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> PortSwigger · CORS</p>

<div className="machine-meta">
  | ·            | ·                                                                                    |
  | ------------ | ------------------------------------------------------------------------------------ |
  | Platform     | PortSwigger Web Security Academy                                                     |
  | Topic        | CORS                                                                                 |
  | Difficulty   | <span className="dbadge dbadge-easy">APPRENTICE</span>                               |
  | Official lab | [Open](https://portswigger.net/web-security/cors/lab-basic-origin-reflection-attack) |
</div>

## Solve the lab

| Language | Author          | Format | Link                                                                                 |
| -------- | --------------- | ------ | ------------------------------------------------------------------------------------ |
| 🇬🇧 EN  | **PortSwigger** | Texto  | [Open](https://portswigger.net/web-security/cors/lab-basic-origin-reflection-attack) |

## Resources by skill

| Skill                                | Source      | Link                                              |
| ------------------------------------ | ----------- | ------------------------------------------------- |
| CORS (Cross-Origin Resource Sharing) | PortSwigger | [Open](https://portswigger.net/web-security/cors) |

## Related skills

[CORS (Cross-Origin Resource Sharing)](/en/skills/cors)

***

## Comments & tips

Solved this lab a different way? Share it here — comments live in [GitHub Discussions](https://github.com/FFuson/HTB_Writeups/discussions).

<div className="rootea-giscus-wrap" data-giscus-term="lab:cors-basic-origin-reflection-attack" data-giscus-lang="en" />

*Last updated: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","name":"CORS vulnerability with basic origin reflection","headline":"CORS vulnerability with basic origin reflection — PortSwigger lab index","url":"https://rootea.es/en/portswigger/labs/cors/basic-origin-reflection-attack","inLanguage":"en","about":[{"@type":"Thing","name":"PortSwigger Web Security Academy"},{"@type":"Thing","name":"CORS"}],"isPartOf":{"@type":"WebSite","name":"rootea.es","url":"https://rootea.es"},"author":{"@type":"Organization","name":"rootea.es"}}`}
</script>
